/* A Bison parser, made by GNU Bison 2.3.  */

/* Skeleton implementation for Bison's Yacc-like parsers in C

   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
   Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.

   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* C LALR(1) parser skeleton written by Richard Stallman, by
   simplifying the original so-called "semantic" parser.  */

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

/* Identify Bison output.  */
#define YYBISON 1

/* Bison version.  */
#define YYBISON_VERSION "2.3"

/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 0

/* Using locations.  */
#define YYLSP_NEEDED 0



/* Tokens.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
   /* Put the tokens into the symbol table, so that GDB and other debuggers
      know about them.  */
   enum yytokentype {
     ACCEPT_PASSWORD = 258,
     ACTION = 259,
     ADMIN = 260,
     AFTYPE = 261,
     T_ALLOW = 262,
     ANTI_NICK_FLOOD = 263,
     ANTI_SPAM_EXIT_MESSAGE_TIME = 264,
     AUTOCONN = 265,
     AUTOJOIN = 266,
     T_BLOCK = 267,
     BURST_AWAY = 268,
     BURST_TOPICWHO = 269,
     BYTES = 270,
     KBYTES = 271,
     MBYTES = 272,
     GBYTES = 273,
     TBYTES = 274,
     CALLER_ID_WAIT = 275,
     CAN_FLOOD = 276,
     CAN_IDLE = 277,
     CHANNEL = 278,
     CHARSET = 279,
     CIDR_BITLEN_IPV4 = 280,
     CIDR_BITLEN_IPV6 = 281,
     CIPHER_PREFERENCE = 282,
     CLASS = 283,
     CODEPAGE = 284,
     COMPRESSED = 285,
     COMPRESSION_LEVEL = 286,
     CONNECT = 287,
     CONNECTFREQ = 288,
     CP_FILE = 289,
     CRYPTLINK = 290,
     DEFAULT_CIPHER_PREFERENCE = 291,
     DEFAULT_FLOODCOUNT = 292,
     DEFAULT_SPLIT_SERVER_COUNT = 293,
     DEFAULT_SPLIT_USER_COUNT = 294,
     DENY = 295,
     DESCRIPTION = 296,
     DIE = 297,
     DISABLE_AUTH = 298,
     DISABLE_FAKE_CHANNELS = 299,
     DISABLE_HIDDEN = 300,
     DISABLE_LOCAL_CHANNELS = 301,
     DISABLE_REMOTE_COMMANDS = 302,
     DOT_IN_IP6_ADDR = 303,
     DOTS_IN_IDENT = 304,
     DURATION = 305,
     EGDPOOL_PATH = 306,
     EMAIL = 307,
     ENABLE = 308,
     ENCRYPTED = 309,
     EXCEED_LIMIT = 310,
     EXEMPT = 311,
     FAILED_OPER_NOTICE = 312,
     FAKENAME = 313,
     IRCD_FLAGS = 314,
     FLATTEN_LINKS = 315,
     FFAILED_OPERLOG = 316,
     FKILLLOG = 317,
     FKLINELOG = 318,
     FGLINELOG = 319,
     FIOERRLOG = 320,
     FOPERLOG = 321,
     FOPERSPYLOG = 322,
     FUSERLOG = 323,
     GECOS = 324,
     GENERAL = 325,
     GLINE = 326,
     GLINES = 327,
     GLINE_EXEMPT = 328,
     GLINE_LOG = 329,
     GLINE_TIME = 330,
     GLINE_MIN_CIDR = 331,
     GLINE_MIN_CIDR6 = 332,
     GLOBAL_KILL = 333,
     IRCD_AUTH = 334,
     NEED_IDENT = 335,
     HAVENT_READ_CONF = 336,
     HIDDEN = 337,
     HIDDEN_ADMIN = 338,
     HIDDEN_NAME = 339,
     HIDDEN_OPER = 340,
     HIDE_SERVER_IPS = 341,
     HIDE_SERVERS = 342,
     HIDE_SPOOF_IPS = 343,
     HOST = 344,
     HUB = 345,
     HUB_MASK = 346,
     IDLETIME = 347,
     IGNORE_BOGUS_TS = 348,
     INVISIBLE_ON_CONNECT = 349,
     IP = 350,
     KILL = 351,
     KILL_CHASE_TIME_LIMIT = 352,
     KLINE = 353,
     KLINE_EXEMPT = 354,
     KLINE_REASON = 355,
     KLINE_WITH_REASON = 356,
     KNOCK_DELAY = 357,
     KNOCK_DELAY_CHANNEL = 358,
     LAZYLINK = 359,
     LEAF_MASK = 360,
     LINKS_DELAY = 361,
     LISTEN = 362,
     T_LOG = 363,
     LOGGING = 364,
     LOG_LEVEL = 365,
     MAX_ACCEPT = 366,
     MAX_BANS = 367,
     MAX_CHANS_PER_USER = 368,
     MAX_GLOBAL = 369,
     MAX_IDENT = 370,
     MAX_LOCAL = 371,
     MAX_NICK_CHANGES = 372,
     MAX_NICK_TIME = 373,
     MAX_NUMBER = 374,
     MAX_TARGETS = 375,
     MESSAGE_LOCALE = 376,
     MIN_NONWILDCARD = 377,
     MIN_NONWILDCARD_SIMPLE = 378,
     MODULE = 379,
     MODULES = 380,
     NAME = 381,
     NEED_PASSWORD = 382,
     NETWORK_DESC = 383,
     NETWORK_NAME = 384,
     NICK = 385,
     NICK_CHANGES = 386,
     NO_CREATE_ON_SPLIT = 387,
     NO_JOIN_ON_SPLIT = 388,
     NO_OPER_FLOOD = 389,
     NO_TILDE = 390,
     NOT = 391,
     NUMBER = 392,
     NUMBER_PER_IDENT = 393,
     NUMBER_PER_CIDR = 394,
     NUMBER_PER_IP = 395,
     NUMBER_PER_IP_GLOBAL = 396,
     OPERATOR = 397,
     OPERS_BYPASS_CALLERID = 398,
     OPER_LOG = 399,
     OPER_ONLY_UMODES = 400,
     OPER_PASS_RESV = 401,
     OPER_SPY_T = 402,
     OPER_UMODES = 403,
     JOIN_FLOOD_COUNT = 404,
     JOIN_FLOOD_TIME = 405,
     PACE_WAIT = 406,
     PACE_WAIT_SIMPLE = 407,
     PASSWORD = 408,
     PATH = 409,
     PING_COOKIE = 410,
     PING_TIME = 411,
     PING_WARNING = 412,
     PORT = 413,
     QSTRING = 414,
     QUIET_ON_BAN = 415,
     REASON = 416,
     REDIRPORT = 417,
     REDIRSERV = 418,
     REGEX_T = 419,
     REHASH = 420,
     TREJECT_HOLD_TIME = 421,
     REMOTE = 422,
     REMOTEBAN = 423,
     RESTRICT_CHANNELS = 424,
     RESTRICTED = 425,
     RSA_PRIVATE_KEY_FILE = 426,
     RSA_PUBLIC_KEY_FILE = 427,
     SSL_CERTIFICATE_FILE = 428,
     RESV = 429,
     RESV_EXEMPT = 430,
     SECONDS = 431,
     MINUTES = 432,
     HOURS = 433,
     DAYS = 434,
     WEEKS = 435,
     SENDQ = 436,
     SEND_PASSWORD = 437,
     SERVERHIDE = 438,
     SERVERINFO = 439,
     SERVLINK_PATH = 440,
     IRCD_SID = 441,
     TKLINE_EXPIRE_NOTICES = 442,
     T_SHARED = 443,
     T_CLUSTER = 444,
     TYPE = 445,
     SHORT_MOTD = 446,
     SILENT = 447,
     SPOOF = 448,
     SPOOF_MASK = 449,
     SPOOF_NOTICE = 450,
     STATS_E_DISABLED = 451,
     STATS_I_OPER_ONLY = 452,
     STATS_K_OPER_ONLY = 453,
     STATS_O_OPER_ONLY = 454,
     STATS_P_OPER_ONLY = 455,
     SVS = 456,
     TBOOL = 457,
     TMASKED = 458,
     T_REJECT = 459,
     TS_MAX_DELTA = 460,
     TS_WARN_DELTA = 461,
     TWODOTS = 462,
     T_ALL = 463,
     T_BOTS = 464,
     T_SOFTCALLERID = 465,
     T_CALLERID = 466,
     T_CCONN = 467,
     T_CCONN_FULL = 468,
     T_CLIENT_FLOOD = 469,
     T_DEAF = 470,
     T_DEBUG = 471,
     T_DRONE = 472,
     T_EXTERNAL = 473,
     T_FULL = 474,
     T_INVISIBLE = 475,
     T_IPV4 = 476,
     T_IPV6 = 477,
     T_LOCOPS = 478,
     T_LOGPATH = 479,
     T_L_CRIT = 480,
     T_L_DEBUG = 481,
     T_L_ERROR = 482,
     T_L_INFO = 483,
     T_L_NOTICE = 484,
     T_L_TRACE = 485,
     T_L_WARN = 486,
     T_MAX_CLIENTS = 487,
     T_NCHANGE = 488,
     T_OPERWALL = 489,
     T_REJ = 490,
     T_SERVNOTICE = 491,
     T_SERVICESNOTICE = 492,
     T_SKILL = 493,
     T_SPY = 494,
     T_SSL = 495,
     T_UMODES = 496,
     T_UNAUTH = 497,
     T_UNRESV = 498,
     T_UNXLINE = 499,
     T_WALLOP = 500,
     THROTTLE_TIME = 501,
     TOPICBURST = 502,
     TRUE_NO_OPER_FLOOD = 503,
     TKLINE = 504,
     TXLINE = 505,
     TRESV = 506,
     UNKLINE = 507,
     USER = 508,
     USE_EGD = 509,
     USE_EXCEPT = 510,
     USE_INVEX = 511,
     USE_KNOCK = 512,
     USE_LOGGING = 513,
     USE_WHOIS_ACTUALLY = 514,
     VHOST = 515,
     VHOST6 = 516,
     XLINE = 517,
     WARN = 518,
     WARN_NO_NLINE = 519
   };
#endif
/* Tokens.  */
#define ACCEPT_PASSWORD 258
#define ACTION 259
#define ADMIN 260
#define AFTYPE 261
#define T_ALLOW 262
#define ANTI_NICK_FLOOD 263
#define ANTI_SPAM_EXIT_MESSAGE_TIME 264
#define AUTOCONN 265
#define AUTOJOIN 266
#define T_BLOCK 267
#define BURST_AWAY 268
#define BURST_TOPICWHO 269
#define BYTES 270
#define KBYTES 271
#define MBYTES 272
#define GBYTES 273
#define TBYTES 274
#define CALLER_ID_WAIT 275
#define CAN_FLOOD 276
#define CAN_IDLE 277
#define CHANNEL 278
#define CHARSET 279
#define CIDR_BITLEN_IPV4 280
#define CIDR_BITLEN_IPV6 281
#define CIPHER_PREFERENCE 282
#define CLASS 283
#define CODEPAGE 284
#define COMPRESSED 285
#define COMPRESSION_LEVEL 286
#define CONNECT 287
#define CONNECTFREQ 288
#define CP_FILE 289
#define CRYPTLINK 290
#define DEFAULT_CIPHER_PREFERENCE 291
#define DEFAULT_FLOODCOUNT 292
#define DEFAULT_SPLIT_SERVER_COUNT 293
#define DEFAULT_SPLIT_USER_COUNT 294
#define DENY 295
#define DESCRIPTION 296
#define DIE 297
#define DISABLE_AUTH 298
#define DISABLE_FAKE_CHANNELS 299
#define DISABLE_HIDDEN 300
#define DISABLE_LOCAL_CHANNELS 301
#define DISABLE_REMOTE_COMMANDS 302
#define DOT_IN_IP6_ADDR 303
#define DOTS_IN_IDENT 304
#define DURATION 305
#define EGDPOOL_PATH 306
#define EMAIL 307
#define ENABLE 308
#define ENCRYPTED 309
#define EXCEED_LIMIT 310
#define EXEMPT 311
#define FAILED_OPER_NOTICE 312
#define FAKENAME 313
#define IRCD_FLAGS 314
#define FLATTEN_LINKS 315
#define FFAILED_OPERLOG 316
#define FKILLLOG 317
#define FKLINELOG 318
#define FGLINELOG 319
#define FIOERRLOG 320
#define FOPERLOG 321
#define FOPERSPYLOG 322
#define FUSERLOG 323
#define GECOS 324
#define GENERAL 325
#define GLINE 326
#define GLINES 327
#define GLINE_EXEMPT 328
#define GLINE_LOG 329
#define GLINE_TIME 330
#define GLINE_MIN_CIDR 331
#define GLINE_MIN_CIDR6 332
#define GLOBAL_KILL 333
#define IRCD_AUTH 334
#define NEED_IDENT 335
#define HAVENT_READ_CONF 336
#define HIDDEN 337
#define HIDDEN_ADMIN 338
#define HIDDEN_NAME 339
#define HIDDEN_OPER 340
#define HIDE_SERVER_IPS 341
#define HIDE_SERVERS 342
#define HIDE_SPOOF_IPS 343
#define HOST 344
#define HUB 345
#define HUB_MASK 346
#define IDLETIME 347
#define IGNORE_BOGUS_TS 348
#define INVISIBLE_ON_CONNECT 349
#define IP 350
#define KILL 351
#define KILL_CHASE_TIME_LIMIT 352
#define KLINE 353
#define KLINE_EXEMPT 354
#define KLINE_REASON 355
#define KLINE_WITH_REASON 356
#define KNOCK_DELAY 357
#define KNOCK_DELAY_CHANNEL 358
#define LAZYLINK 359
#define LEAF_MASK 360
#define LINKS_DELAY 361
#define LISTEN 362
#define T_LOG 363
#define LOGGING 364
#define LOG_LEVEL 365
#define MAX_ACCEPT 366
#define MAX_BANS 367
#define MAX_CHANS_PER_USER 368
#define MAX_GLOBAL 369
#define MAX_IDENT 370
#define MAX_LOCAL 371
#define MAX_NICK_CHANGES 372
#define MAX_NICK_TIME 373
#define MAX_NUMBER 374
#define MAX_TARGETS 375
#define MESSAGE_LOCALE 376
#define MIN_NONWILDCARD 377
#define MIN_NONWILDCARD_SIMPLE 378
#define MODULE 379
#define MODULES 380
#define NAME 381
#define NEED_PASSWORD 382
#define NETWORK_DESC 383
#define NETWORK_NAME 384
#define NICK 385
#define NICK_CHANGES 386
#define NO_CREATE_ON_SPLIT 387
#define NO_JOIN_ON_SPLIT 388
#define NO_OPER_FLOOD 389
#define NO_TILDE 390
#define NOT 391
#define NUMBER 392
#define NUMBER_PER_IDENT 393
#define NUMBER_PER_CIDR 394
#define NUMBER_PER_IP 395
#define NUMBER_PER_IP_GLOBAL 396
#define OPERATOR 397
#define OPERS_BYPASS_CALLERID 398
#define OPER_LOG 399
#define OPER_ONLY_UMODES 400
#define OPER_PASS_RESV 401
#define OPER_SPY_T 402
#define OPER_UMODES 403
#define JOIN_FLOOD_COUNT 404
#define JOIN_FLOOD_TIME 405
#define PACE_WAIT 406
#define PACE_WAIT_SIMPLE 407
#define PASSWORD 408
#define PATH 409
#define PING_COOKIE 410
#define PING_TIME 411
#define PING_WARNING 412
#define PORT 413
#define QSTRING 414
#define QUIET_ON_BAN 415
#define REASON 416
#define REDIRPORT 417
#define REDIRSERV 418
#define REGEX_T 419
#define REHASH 420
#define TREJECT_HOLD_TIME 421
#define REMOTE 422
#define REMOTEBAN 423
#define RESTRICT_CHANNELS 424
#define RESTRICTED 425
#define RSA_PRIVATE_KEY_FILE 426
#define RSA_PUBLIC_KEY_FILE 427
#define SSL_CERTIFICATE_FILE 428
#define RESV 429
#define RESV_EXEMPT 430
#define SECONDS 431
#define MINUTES 432
#define HOURS 433
#define DAYS 434
#define WEEKS 435
#define SENDQ 436
#define SEND_PASSWORD 437
#define SERVERHIDE 438
#define SERVERINFO 439
#define SERVLINK_PATH 440
#define IRCD_SID 441
#define TKLINE_EXPIRE_NOTICES 442
#define T_SHARED 443
#define T_CLUSTER 444
#define TYPE 445
#define SHORT_MOTD 446
#define SILENT 447
#define SPOOF 448
#define SPOOF_MASK 449
#define SPOOF_NOTICE 450
#define STATS_E_DISABLED 451
#define STATS_I_OPER_ONLY 452
#define STATS_K_OPER_ONLY 453
#define STATS_O_OPER_ONLY 454
#define STATS_P_OPER_ONLY 455
#define SVS 456
#define TBOOL 457
#define TMASKED 458
#define T_REJECT 459
#define TS_MAX_DELTA 460
#define TS_WARN_DELTA 461
#define TWODOTS 462
#define T_ALL 463
#define T_BOTS 464
#define T_SOFTCALLERID 465
#define T_CALLERID 466
#define T_CCONN 467
#define T_CCONN_FULL 468
#define T_CLIENT_FLOOD 469
#define T_DEAF 470
#define T_DEBUG 471
#define T_DRONE 472
#define T_EXTERNAL 473
#define T_FULL 474
#define T_INVISIBLE 475
#define T_IPV4 476
#define T_IPV6 477
#define T_LOCOPS 478
#define T_LOGPATH 479
#define T_L_CRIT 480
#define T_L_DEBUG 481
#define T_L_ERROR 482
#define T_L_INFO 483
#define T_L_NOTICE 484
#define T_L_TRACE 485
#define T_L_WARN 486
#define T_MAX_CLIENTS 487
#define T_NCHANGE 488
#define T_OPERWALL 489
#define T_REJ 490
#define T_SERVNOTICE 491
#define T_SERVICESNOTICE 492
#define T_SKILL 493
#define T_SPY 494
#define T_SSL 495
#define T_UMODES 496
#define T_UNAUTH 497
#define T_UNRESV 498
#define T_UNXLINE 499
#define T_WALLOP 500
#define THROTTLE_TIME 501
#define TOPICBURST 502
#define TRUE_NO_OPER_FLOOD 503
#define TKLINE 504
#define TXLINE 505
#define TRESV 506
#define UNKLINE 507
#define USER 508
#define USE_EGD 509
#define USE_EXCEPT 510
#define USE_INVEX 511
#define USE_KNOCK 512
#define USE_LOGGING 513
#define USE_WHOIS_ACTUALLY 514
#define VHOST 515
#define VHOST6 516
#define XLINE 517
#define WARN 518
#define WARN_NO_NLINE 519




/* Copy the first part of user declarations.  */
#line 25 "ircd_parser.y"


#define YY_NO_UNPUT
#include <sys/types.h>

#include "stdinc.h"
#include "ircd.h"
#include "tools.h"
#include "list.h"
#include "s_conf.h"
#include "event.h"
#include "s_log.h"
#include "client.h"	/* for UMODE_ALL only */
#include "pcre.h"
#include "irc_string.h"
#include "irc_getaddrinfo.h"
#include "sprintf_irc.h"
#include "memory.h"
#include "modules.h"
#include "s_serv.h" /* for CAP_LL / IsCapable */
#include "hostmask.h"
#include "send.h"
#include "listener.h"
#include "resv.h"
#include "numeric.h"
#include "s_user.h"
#include "translate.h"

#ifdef HAVE_LIBCRYPTO
#include <openssl/rsa.h>
#include <openssl/bio.h>
#include <openssl/pem.h>
#endif

static char *class_name = NULL;
static struct ConfItem *yy_conf = NULL;
static struct AccessItem *yy_aconf = NULL;
static struct MatchItem *yy_match_item = NULL;
static struct ClassItem *yy_class = NULL;
static char *yy_class_name = NULL;

static dlink_list col_conf_list  = { NULL, NULL, 0 };
static dlink_list hub_conf_list  = { NULL, NULL, 0 };
static dlink_list leaf_conf_list = { NULL, NULL, 0 };
static unsigned int listener_flags = 0;
static unsigned int regex_ban = 0;
static char userbuf[IRCD_BUFSIZE];
static char hostbuf[IRCD_BUFSIZE];
static char reasonbuf[REASONLEN + 1];
static char gecos_name[REALLEN * 4];

extern dlink_list gdeny_items; /* XXX */

static char *resv_reason = NULL;
static char *listener_address = NULL;
static char *listener_charset = NULL;
static int not_atom = 0;

static char *charset_name = NULL;

struct CollectItem
{
  dlink_node node;
  char *name;
  char *autojoin;
  char *spoof_mask;
  char *user;
  char *host;
  char *passwd;
  int  port;
  int  flags;
#ifdef HAVE_LIBCRYPTO
  char *rsa_public_key_file;
  RSA *rsa_public_key;
#endif
};

static void
free_collect_item(struct CollectItem *item)
{
  MyFree(item->name);
  MyFree(item->spoof_mask);
  MyFree(item->autojoin);
  MyFree(item->user);
  MyFree(item->host);
  MyFree(item->passwd);
#ifdef HAVE_LIBCRYPTO
  MyFree(item->rsa_public_key_file);
#endif
  MyFree(item);
}

static void
unhook_hub_leaf_confs(void)
{
  dlink_node *ptr;
  dlink_node *next_ptr;
  struct CollectItem *yy_hconf;
  struct CollectItem *yy_lconf;

  DLINK_FOREACH_SAFE(ptr, next_ptr, hub_conf_list.head)
  {
    yy_hconf = ptr->data;
    dlinkDelete(&yy_hconf->node, &hub_conf_list);
    free_collect_item(yy_hconf);
  }

  DLINK_FOREACH_SAFE(ptr, next_ptr, leaf_conf_list.head)
  {
    yy_lconf = ptr->data;
    dlinkDelete(&yy_lconf->node, &leaf_conf_list);
    free_collect_item(yy_lconf);
  }
}



/* Enabling traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif

/* Enabling verbose error messages.  */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif

/* Enabling the token table.  */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif

#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
#line 142 "ircd_parser.y"
{
  int number;
  char *string;
}
/* Line 187 of yacc.c.  */
#line 746 "y.tab.c"
	YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
#endif



/* Copy the second part of user declarations.  */


/* Line 216 of yacc.c.  */
#line 759 "y.tab.c"

#ifdef short
# undef short
#endif

#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif

#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#elif (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
#else
typedef short int yytype_int8;
#endif

#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif

#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif

#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
#  define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
#  define YYSIZE_T size_t
# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# else
#  define YYSIZE_T unsigned int
# endif
#endif

#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)

#ifndef YY_
# if YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(msgid) dgettext ("bison-runtime", msgid)
#  endif
# endif
# ifndef YY_
#  define YY_(msgid) msgid
# endif
#endif

/* Suppress unused-variable warnings by "using" E.  */
#if ! defined lint || defined __GNUC__
# define YYUSE(e) ((void) (e))
#else
# define YYUSE(e) /* empty */
#endif

/* Identity function, used to suppress warnings about constant conditions.  */
#ifndef lint
# define YYID(n) (n)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static int
YYID (int i)
#else
static int
YYID (i)
    int i;
#endif
{
  return i;
}
#endif

#if ! defined yyoverflow || YYERROR_VERBOSE

/* The parser invokes alloca or malloc; define the necessary symbols.  */

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   elif defined __BUILTIN_VA_ARG_INCR
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
#   elif defined _AIX
#    define YYSTACK_ALLOC __alloca
#   elif defined _MSC_VER
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
#    define alloca _alloca
#   else
#    define YYSTACK_ALLOC alloca
#    if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#     ifndef _STDLIB_H
#      define _STDLIB_H 1
#     endif
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's `empty if-body' warning.  */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
#  ifndef YYSTACK_ALLOC_MAXIMUM
    /* The OS might guarantee only one guard page at the bottom of the stack,
       and a page size can be as small as 4096 bytes.  So we cannot safely
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
       to allow for a few compiler-allocated temporary stack slots.  */
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
#  endif
# else
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
#  ifndef YYSTACK_ALLOC_MAXIMUM
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
#  endif
#  if (defined __cplusplus && ! defined _STDLIB_H \
       && ! ((defined YYMALLOC || defined malloc) \
	     && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef _STDLIB_H
#    define _STDLIB_H 1
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
#  ifndef YYFREE
#   define YYFREE free
#   if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */


#if (! defined yyoverflow \
     && (! defined __cplusplus \
	 || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  yytype_int16 yyss;
  YYSTYPE yyvs;
  };

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
     ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

/* Copy COUNT objects from FROM to TO.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(To, From, Count) \
      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
#  else
#   define YYCOPY(To, From, Count)		\
      do					\
	{					\
	  YYSIZE_T yyi;				\
	  for (yyi = 0; yyi < (Count); yyi++)	\
	    (To)[yyi] = (From)[yyi];		\
	}					\
      while (YYID (0))
#  endif
# endif

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack)					\
    do									\
      {									\
	YYSIZE_T yynewbytes;						\
	YYCOPY (&yyptr->Stack, Stack, yysize);				\
	Stack = &yyptr->Stack;						\
	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
	yyptr += yynewbytes / sizeof (*yyptr);				\
      }									\
    while (YYID (0))

#endif

/* YYFINAL -- State number of the termination state.  */
#define YYFINAL  2
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   1436

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  270
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  350
/* YYNRULES -- Number of rules.  */
#define YYNRULES  755
/* YYNRULES -- Number of states.  */
#define YYNSTATES  1519

/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
#define YYUNDEFTOK  2
#define YYMAXUTOK   519

#define YYTRANSLATE(YYX)						\
  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
static const yytype_uint16 yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,   269,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,   265,
       2,   268,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,   267,     2,   266,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
      35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
      55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
      65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
      75,    76,    77,    78,    79,    80,    81,    82,    83,    84,
      85,    86,    87,    88,    89,    90,    91,    92,    93,    94,
      95,    96,    97,    98,    99,   100,   101,   102,   103,   104,
     105,   106,   107,   108,   109,   110,   111,   112,   113,   114,
     115,   116,   117,   118,   119,   120,   121,   122,   123,   124,
     125,   126,   127,   128,   129,   130,   131,   132,   133,   134,
     135,   136,   137,   138,   139,   140,   141,   142,   143,   144,
     145,   146,   147,   148,   149,   150,   151,   152,   153,   154,
     155,   156,   157,   158,   159,   160,   161,   162,   163,   164,
     165,   166,   167,   168,   169,   170,   171,   172,   173,   174,
     175,   176,   177,   178,   179,   180,   181,   182,   183,   184,
     185,   186,   187,   188,   189,   190,   191,   192,   193,   194,
     195,   196,   197,   198,   199,   200,   201,   202,   203,   204,
     205,   206,   207,   208,   209,   210,   211,   212,   213,   214,
     215,   216,   217,   218,   219,   220,   221,   222,   223,   224,
     225,   226,   227,   228,   229,   230,   231,   232,   233,   234,
     235,   236,   237,   238,   239,   240,   241,   242,   243,   244,
     245,   246,   247,   248,   249,   250,   251,   252,   253,   254,
     255,   256,   257,   258,   259,   260,   261,   262,   263,   264
};

#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
   YYRHS.  */
static const yytype_uint16 yyprhs[] =
{
       0,     0,     3,     4,     7,     9,    11,    13,    15,    17,
      19,    21,    23,    25,    27,    29,    31,    33,    35,    37,
      39,    41,    43,    45,    47,    49,    52,    55,    56,    58,
      61,    65,    69,    73,    77,    81,    82,    84,    87,    91,
      95,    99,   105,   108,   110,   112,   114,   117,   122,   127,
     133,   136,   138,   140,   142,   144,   146,   148,   150,   152,
     154,   156,   158,   160,   163,   168,   173,   178,   183,   188,
     193,   198,   203,   208,   213,   218,   224,   227,   229,   231,
     233,   235,   238,   243,   248,   253,   259,   262,   264,   266,
     268,   270,   272,   274,   276,   278,   280,   282,   284,   286,
     288,   291,   296,   301,   306,   311,   316,   321,   326,   331,
     336,   341,   346,   351,   356,   361,   366,   371,   376,   381,
     382,   390,   391,   393,   396,   398,   400,   402,   404,   406,
     408,   410,   412,   414,   416,   418,   420,   422,   424,   426,
     428,   430,   432,   434,   436,   438,   440,   442,   445,   450,
     452,   457,   462,   467,   472,   477,   478,   484,   488,   490,
     492,   494,   496,   498,   500,   502,   504,   506,   508,   510,
     512,   514,   516,   518,   520,   522,   524,   526,   528,   530,
     535,   540,   545,   550,   555,   560,   565,   570,   575,   580,
     585,   590,   595,   600,   601,   607,   611,   613,   614,   618,
     619,   622,   624,   626,   628,   630,   632,   634,   636,   638,
     640,   642,   644,   646,   648,   650,   652,   654,   655,   663,
     664,   666,   669,   671,   673,   675,   677,   679,   681,   683,
     685,   687,   689,   691,   693,   695,   697,   700,   705,   707,
     712,   717,   722,   727,   732,   737,   742,   747,   752,   757,
     762,   767,   768,   775,   778,   780,   782,   784,   787,   792,
     797,   798,   805,   806,   812,   816,   818,   820,   822,   825,
     827,   829,   831,   833,   835,   837,   840,   841,   847,   851,
     853,   855,   859,   864,   869,   874,   875,   882,   885,   887,
     889,   891,   893,   895,   897,   899,   901,   903,   905,   907,
     909,   911,   913,   915,   917,   919,   921,   923,   926,   931,
     936,   941,   946,   951,   952,   958,   962,   964,   965,   969,
     970,   973,   975,   977,   979,   981,   983,   985,   987,   989,
     991,   993,   998,  1003,  1008,  1013,  1018,  1023,  1028,  1033,
    1038,  1043,  1048,  1053,  1054,  1061,  1064,  1066,  1068,  1070,
    1072,  1075,  1080,  1085,  1090,  1091,  1098,  1101,  1103,  1105,
    1107,  1109,  1112,  1117,  1122,  1123,  1129,  1133,  1135,  1137,
    1139,  1141,  1143,  1145,  1147,  1149,  1151,  1153,  1155,  1157,
    1159,  1160,  1167,  1170,  1172,  1174,  1176,  1179,  1184,  1185,
    1191,  1195,  1197,  1199,  1201,  1203,  1205,  1207,  1209,  1211,
    1213,  1215,  1217,  1219,  1221,  1222,  1230,  1231,  1233,  1236,
    1238,  1240,  1242,  1244,  1246,  1248,  1250,  1252,  1254,  1256,
    1258,  1260,  1262,  1264,  1266,  1268,  1270,  1272,  1274,  1276,
    1279,  1284,  1286,  1291,  1296,  1301,  1306,  1311,  1316,  1321,
    1326,  1327,  1333,  1337,  1339,  1340,  1344,  1345,  1348,  1350,
    1352,  1354,  1356,  1358,  1360,  1365,  1370,  1375,  1380,  1385,
    1390,  1395,  1400,  1405,  1410,  1411,  1418,  1419,  1425,  1429,
    1431,  1433,  1436,  1438,  1440,  1442,  1444,  1446,  1451,  1456,
    1457,  1464,  1467,  1469,  1471,  1473,  1475,  1480,  1485,  1491,
    1494,  1496,  1498,  1500,  1505,  1506,  1513,  1514,  1520,  1524,
    1526,  1528,  1531,  1533,  1535,  1537,  1539,  1541,  1546,  1551,
    1557,  1560,  1562,  1564,  1566,  1568,  1570,  1572,  1574,  1576,
    1578,  1580,  1582,  1584,  1586,  1588,  1590,  1592,  1594,  1596,
    1598,  1600,  1602,  1604,  1606,  1608,  1610,  1612,  1614,  1616,
    1618,  1620,  1622,  1624,  1626,  1628,  1630,  1632,  1634,  1636,
    1638,  1640,  1642,  1644,  1646,  1648,  1650,  1652,  1654,  1656,
    1658,  1660,  1662,  1664,  1666,  1668,  1670,  1672,  1674,  1679,
    1684,  1689,  1694,  1699,  1704,  1709,  1714,  1719,  1724,  1729,
    1734,  1739,  1744,  1749,  1754,  1759,  1764,  1769,  1774,  1779,
    1784,  1789,  1794,  1799,  1804,  1809,  1814,  1819,  1824,  1829,
    1834,  1839,  1844,  1849,  1854,  1859,  1864,  1869,  1874,  1879,
    1884,  1889,  1894,  1899,  1904,  1909,  1914,  1919,  1924,  1925,
    1931,  1935,  1937,  1939,  1941,  1943,  1945,  1947,  1949,  1951,
    1953,  1955,  1957,  1959,  1961,  1963,  1965,  1967,  1969,  1971,
    1973,  1975,  1977,  1978,  1984,  1988,  1990,  1992,  1994,  1996,
    1998,  2000,  2002,  2004,  2006,  2008,  2010,  2012,  2014,  2016,
    2018,  2020,  2022,  2024,  2026,  2028,  2030,  2035,  2040,  2045,
    2050,  2055,  2056,  2063,  2066,  2068,  2070,  2072,  2074,  2076,
    2078,  2080,  2082,  2087,  2092,  2093,  2099,  2103,  2105,  2107,
    2109,  2114,  2119,  2120,  2126,  2130,  2132,  2134,  2136,  2142,
    2145,  2147,  2149,  2151,  2153,  2155,  2157,  2159,  2161,  2163,
    2165,  2167,  2169,  2171,  2173,  2175,  2177,  2179,  2181,  2183,
    2185,  2190,  2195,  2200,  2205,  2210,  2215,  2220,  2225,  2230,
    2235,  2240,  2245,  2250,  2255,  2260,  2265,  2270,  2275,  2281,
    2284,  2286,  2288,  2290,  2292,  2294,  2296,  2298,  2300,  2302,
    2307,  2312,  2317,  2322,  2327,  2332
};

/* YYRHS -- A `-1'-separated list of the rules' RHS.  */
static const yytype_int16 yyrhs[] =
{
     271,     0,    -1,    -1,   271,   272,    -1,   296,    -1,   302,
      -1,   317,    -1,   589,    -1,   354,    -1,   373,    -1,   379,
      -1,   394,    -1,   282,    -1,   610,    -1,   422,    -1,   429,
      -1,   439,    -1,   448,    -1,   479,    -1,   489,    -1,   495,
      -1,   509,    -1,   573,    -1,   499,    -1,   277,    -1,     1,
     265,    -1,     1,   266,    -1,    -1,   274,    -1,   137,   273,
      -1,   137,   176,   273,    -1,   137,   177,   273,    -1,   137,
     178,   273,    -1,   137,   179,   273,    -1,   137,   180,   273,
      -1,    -1,   276,    -1,   137,   275,    -1,   137,    15,   275,
      -1,   137,    16,   275,    -1,   137,    17,   275,    -1,   125,
     267,   278,   266,   265,    -1,   278,   279,    -1,   279,    -1,
     280,    -1,   281,    -1,     1,   265,    -1,   124,   268,   159,
     265,    -1,   154,   268,   159,   265,    -1,   184,   267,   283,
     266,   265,    -1,   283,   284,    -1,   284,    -1,   287,    -1,
     292,    -1,   295,    -1,   289,    -1,   290,    -1,   291,    -1,
     294,    -1,   286,    -1,   293,    -1,   288,    -1,   285,    -1,
       1,   265,    -1,   173,   268,   159,   265,    -1,   171,   268,
     159,   265,    -1,   126,   268,   159,   265,    -1,   186,   268,
     159,   265,    -1,    41,   268,   159,   265,    -1,   129,   268,
     159,   265,    -1,   128,   268,   159,   265,    -1,   260,   268,
     159,   265,    -1,   261,   268,   159,   265,    -1,   232,   268,
     137,   265,    -1,    90,   268,   202,   265,    -1,     5,   267,
     297,   266,   265,    -1,   297,   298,    -1,   298,    -1,   299,
      -1,   301,    -1,   300,    -1,     1,   265,    -1,   126,   268,
     159,   265,    -1,    52,   268,   159,   265,    -1,    41,   268,
     159,   265,    -1,   109,   267,   303,   266,   265,    -1,   303,
     304,    -1,   304,    -1,   305,    -1,   306,    -1,   315,    -1,
     316,    -1,   307,    -1,   309,    -1,   311,    -1,   312,    -1,
     314,    -1,   310,    -1,   313,    -1,   308,    -1,     1,   265,
      -1,   224,   268,   159,   265,    -1,   144,   268,   159,   265,
      -1,    68,   268,   159,   265,    -1,    61,   268,   159,   265,
      -1,    66,   268,   159,   265,    -1,    67,   268,   159,   265,
      -1,    64,   268,   159,   265,    -1,    63,   268,   159,   265,
      -1,    65,   268,   159,   265,    -1,    62,   268,   159,   265,
      -1,   110,   268,   225,   265,    -1,   110,   268,   227,   265,
      -1,   110,   268,   231,   265,    -1,   110,   268,   229,   265,
      -1,   110,   268,   230,   265,    -1,   110,   268,   228,   265,
      -1,   110,   268,   226,   265,    -1,   258,   268,   202,   265,
      -1,    -1,   142,   318,   319,   267,   320,   266,   265,    -1,
      -1,   323,    -1,   320,   321,    -1,   321,    -1,   322,    -1,
     324,    -1,   325,    -1,   344,    -1,   345,    -1,   329,    -1,
     328,    -1,   333,    -1,   334,    -1,   336,    -1,   337,    -1,
     338,    -1,   339,    -1,   340,    -1,   335,    -1,   341,    -1,
     342,    -1,   343,    -1,   346,    -1,   326,    -1,   327,    -1,
     347,    -1,     1,   265,    -1,   126,   268,   159,   265,    -1,
     159,    -1,   253,   268,   159,   265,    -1,   153,   268,   159,
     265,    -1,    54,   268,   202,   265,    -1,   172,   268,   159,
     265,    -1,    28,   268,   159,   265,    -1,    -1,   241,   330,
     268,   331,   265,    -1,   331,   269,   332,    -1,   332,    -1,
     209,    -1,   212,    -1,   213,    -1,   215,    -1,   216,    -1,
     219,    -1,   238,    -1,   233,    -1,   235,    -1,   242,    -1,
     239,    -1,   218,    -1,   234,    -1,   236,    -1,   237,    -1,
     220,    -1,   245,    -1,   210,    -1,   211,    -1,   223,    -1,
      78,   268,   202,   265,    -1,   167,   268,   202,   265,    -1,
     168,   268,   202,   265,    -1,    98,   268,   202,   265,    -1,
     262,   268,   202,   265,    -1,   252,   268,   202,   265,    -1,
      71,   268,   202,   265,    -1,   131,   268,   202,   265,    -1,
      42,   268,   202,   265,    -1,   165,   268,   202,   265,    -1,
       5,   268,   202,   265,    -1,    83,   268,   202,   265,    -1,
      85,   268,   202,   265,    -1,   234,   268,   202,   265,    -1,
      -1,    59,   348,   268,   349,   265,    -1,   349,   269,   350,
      -1,   350,    -1,    -1,   136,   351,   353,    -1,    -1,   352,
     353,    -1,    78,    -1,   167,    -1,    98,    -1,   252,    -1,
     262,    -1,    71,    -1,    42,    -1,   165,    -1,     5,    -1,
      83,    -1,   131,    -1,   234,    -1,   147,    -1,    85,    -1,
     168,    -1,    54,    -1,    -1,    28,   355,   356,   267,   357,
     266,   265,    -1,    -1,   360,    -1,   357,   358,    -1,   358,
      -1,   359,    -1,   370,    -1,   371,    -1,   361,    -1,   362,
      -1,   372,    -1,   363,    -1,   364,    -1,   365,    -1,   366,
      -1,   367,    -1,   368,    -1,   369,    -1,     1,   265,    -1,
     126,   268,   159,   265,    -1,   159,    -1,   156,   268,   274,
     265,    -1,   157,   268,   274,   265,    -1,   140,   268,   137,
     265,    -1,    33,   268,   274,   265,    -1,   119,   268,   137,
     265,    -1,   114,   268,   137,   265,    -1,   116,   268,   137,
     265,    -1,   115,   268,   137,   265,    -1,   181,   268,   276,
     265,    -1,    25,   268,   137,   265,    -1,    26,   268,   137,
     265,    -1,   139,   268,   137,   265,    -1,    -1,    24,   374,
     267,   375,   266,   265,    -1,   375,   376,    -1,   376,    -1,
     377,    -1,   378,    -1,     1,   265,    -1,   126,   268,   159,
     265,    -1,    34,   268,   159,   265,    -1,    -1,   107,   380,
     267,   385,   266,   265,    -1,    -1,    59,   382,   268,   383,
     265,    -1,   383,   269,   384,    -1,   384,    -1,   240,    -1,
      82,    -1,   385,   386,    -1,   386,    -1,   387,    -1,   381,
      -1,   391,    -1,   392,    -1,   393,    -1,     1,   265,    -1,
      -1,   158,   268,   389,   388,   265,    -1,   389,   269,   390,
      -1,   390,    -1,   137,    -1,   137,   207,   137,    -1,    95,
     268,   159,   265,    -1,    89,   268,   159,   265,    -1,    29,
     268,   159,   265,    -1,    -1,    79,   395,   267,   396,   266,
     265,    -1,   396,   397,    -1,   397,    -1,   398,    -1,   399,
      -1,   401,    -1,   403,    -1,   410,    -1,   411,    -1,   412,
      -1,   414,    -1,   415,    -1,   416,    -1,   417,    -1,   400,
      -1,   418,    -1,   419,    -1,   413,    -1,   420,    -1,   402,
      -1,   421,    -1,     1,   265,    -1,   253,   268,   159,   265,
      -1,   153,   268,   159,   265,    -1,   195,   268,   202,   265,
      -1,    28,   268,   159,   265,    -1,    54,   268,   202,   265,
      -1,    -1,    59,   404,   268,   405,   265,    -1,   405,   269,
     406,    -1,   406,    -1,    -1,   136,   407,   409,    -1,    -1,
     408,   409,    -1,   195,    -1,    55,    -1,    99,    -1,    80,
      -1,    21,    -1,    22,    -1,   135,    -1,    73,    -1,   175,
      -1,   127,    -1,    99,   268,   202,   265,    -1,    80,   268,
     202,   265,    -1,    55,   268,   202,   265,    -1,    21,   268,
     202,   265,    -1,   135,   268,   202,   265,    -1,    73,   268,
     202,   265,    -1,   193,   268,   159,   265,    -1,   194,   268,
     159,   265,    -1,   163,   268,   159,   265,    -1,   162,   268,
     137,   265,    -1,   127,   268,   202,   265,    -1,    11,   268,
     159,   265,    -1,    -1,   174,   423,   267,   424,   266,   265,
      -1,   424,   425,    -1,   425,    -1,   426,    -1,   427,    -1,
     428,    -1,     1,   265,    -1,   161,   268,   159,   265,    -1,
      23,   268,   159,   265,    -1,   130,   268,   159,   265,    -1,
      -1,   188,   430,   267,   431,   266,   265,    -1,   431,   432,
      -1,   432,    -1,   433,    -1,   434,    -1,   435,    -1,     1,
     265,    -1,   126,   268,   159,   265,    -1,   253,   268,   159,
     265,    -1,    -1,   190,   436,   268,   437,   265,    -1,   437,
     269,   438,    -1,   438,    -1,    98,    -1,   249,    -1,   252,
      -1,   262,    -1,   250,    -1,   244,    -1,   174,    -1,   251,
      -1,   243,    -1,   223,    -1,   201,    -1,   208,    -1,    -1,
     189,   440,   267,   441,   266,   265,    -1,   441,   442,    -1,
     442,    -1,   443,    -1,   444,    -1,     1,   265,    -1,   126,
     268,   159,   265,    -1,    -1,   190,   445,   268,   446,   265,
      -1,   446,   269,   447,    -1,   447,    -1,    98,    -1,   249,
      -1,   252,    -1,   262,    -1,   250,    -1,   244,    -1,   174,
      -1,   251,    -1,   243,    -1,   223,    -1,   201,    -1,   208,
      -1,    -1,    32,   449,   450,   267,   451,   266,   265,    -1,
      -1,   454,    -1,   451,   452,    -1,   452,    -1,   453,    -1,
     455,    -1,   456,    -1,   457,    -1,   458,    -1,   460,    -1,
     459,    -1,   461,    -1,   462,    -1,   475,    -1,   476,    -1,
     477,    -1,   473,    -1,   470,    -1,   472,    -1,   471,    -1,
     469,    -1,   478,    -1,   474,    -1,     1,   265,    -1,   126,
     268,   159,   265,    -1,   159,    -1,    89,   268,   159,   265,
      -1,   260,   268,   159,   265,    -1,   182,   268,   159,   265,
      -1,     3,   268,   159,   265,    -1,   158,   268,   137,   265,
      -1,     6,   268,   221,   265,    -1,     6,   268,   222,   265,
      -1,    58,   268,   159,   265,    -1,    -1,    59,   463,   268,
     464,   265,    -1,   464,   269,   465,    -1,   465,    -1,    -1,
     136,   466,   468,    -1,    -1,   467,   468,    -1,   104,    -1,
      30,    -1,    35,    -1,    10,    -1,    13,    -1,   247,    -1,
     172,   268,   159,   265,    -1,    54,   268,   202,   265,    -1,
      35,   268,   202,   265,    -1,    30,   268,   202,   265,    -1,
      10,   268,   202,   265,    -1,   247,   268,   202,   265,    -1,
      91,   268,   159,   265,    -1,   105,   268,   159,   265,    -1,
      28,   268,   159,   265,    -1,    27,   268,   159,   265,    -1,
      -1,    96,   480,   267,   485,   266,   265,    -1,    -1,   190,
     482,   268,   483,   265,    -1,   483,   269,   484,    -1,   484,
      -1,   164,    -1,   485,   486,    -1,   486,    -1,   487,    -1,
     488,    -1,   481,    -1,     1,    -1,   253,   268,   159,   265,
      -1,   161,   268,   159,   265,    -1,    -1,    40,   490,   267,
     491,   266,   265,    -1,   491,   492,    -1,   492,    -1,   493,
      -1,   494,    -1,     1,    -1,    95,   268,   159,   265,    -1,
     161,   268,   159,   265,    -1,    56,   267,   496,   266,   265,
      -1,   496,   497,    -1,   497,    -1,   498,    -1,     1,    -1,
      95,   268,   159,   265,    -1,    -1,    69,   500,   267,   505,
     266,   265,    -1,    -1,   190,   502,   268,   503,   265,    -1,
     503,   269,   504,    -1,   504,    -1,   164,    -1,   505,   506,
      -1,   506,    -1,   507,    -1,   508,    -1,   501,    -1,     1,
      -1,   126,   268,   159,   265,    -1,   161,   268,   159,   265,
      -1,    70,   267,   510,   266,   265,    -1,   510,   511,    -1,
     511,    -1,   519,    -1,   520,    -1,   522,    -1,   523,    -1,
     524,    -1,   525,    -1,   526,    -1,   527,    -1,   528,    -1,
     529,    -1,   518,    -1,   531,    -1,   532,    -1,   533,    -1,
     534,    -1,   550,    -1,   536,    -1,   538,    -1,   540,    -1,
     539,    -1,   543,    -1,   537,    -1,   544,    -1,   545,    -1,
     546,    -1,   547,    -1,   549,    -1,   548,    -1,   564,    -1,
     551,    -1,   555,    -1,   556,    -1,   560,    -1,   541,    -1,
     542,    -1,   570,    -1,   568,    -1,   569,    -1,   552,    -1,
     521,    -1,   553,    -1,   554,    -1,   571,    -1,   559,    -1,
     530,    -1,   572,    -1,   557,    -1,   558,    -1,   514,    -1,
     517,    -1,   512,    -1,   513,    -1,   515,    -1,   516,    -1,
     535,    -1,     1,    -1,    76,   268,   137,   265,    -1,    77,
     268,   137,   265,    -1,    13,   268,   202,   265,    -1,   259,
     268,   202,   265,    -1,   166,   268,   274,   265,    -1,   187,
     268,   202,   265,    -1,    97,   268,   137,   265,    -1,    88,
     268,   202,   265,    -1,    93,   268,   202,   265,    -1,    47,
     268,   202,   265,    -1,    57,   268,   202,   265,    -1,     8,
     268,   202,   265,    -1,   118,   268,   274,   265,    -1,   117,
     268,   137,   265,    -1,   111,   268,   137,   265,    -1,     9,
     268,   274,   265,    -1,   206,   268,   274,   265,    -1,   205,
     268,   274,   265,    -1,    81,   268,   137,   265,    -1,   101,
     268,   202,   265,    -1,   100,   268,   159,   265,    -1,    94,
     268,   202,   265,    -1,   264,   268,   202,   265,    -1,   196,
     268,   202,   265,    -1,   199,   268,   202,   265,    -1,   200,
     268,   202,   265,    -1,   198,   268,   202,   265,    -1,   198,
     268,   203,   265,    -1,   197,   268,   202,   265,    -1,   197,
     268,   203,   265,    -1,   151,   268,   274,   265,    -1,    20,
     268,   274,   265,    -1,   143,   268,   202,   265,    -1,   152,
     268,   274,   265,    -1,   191,   268,   202,   265,    -1,   134,
     268,   202,   265,    -1,   248,   268,   202,   265,    -1,   146,
     268,   202,   265,    -1,   121,   268,   159,   265,    -1,    92,
     268,   274,   265,    -1,    49,   268,   137,   265,    -1,   120,
     268,   137,   265,    -1,   185,   268,   159,   265,    -1,    36,
     268,   159,   265,    -1,    31,   268,   137,   265,    -1,   254,
     268,   202,   265,    -1,    51,   268,   159,   265,    -1,   155,
     268,   202,   265,    -1,    43,   268,   202,   265,    -1,   246,
     268,   274,   265,    -1,    -1,   148,   561,   268,   562,   265,
      -1,   562,   269,   563,    -1,   563,    -1,   209,    -1,   212,
      -1,   213,    -1,   215,    -1,   216,    -1,   219,    -1,   238,
      -1,   233,    -1,   235,    -1,   242,    -1,   239,    -1,   218,
      -1,   234,    -1,   236,    -1,   237,    -1,   220,    -1,   245,
      -1,   210,    -1,   211,    -1,   223,    -1,    -1,   145,   565,
     268,   566,   265,    -1,   566,   269,   567,    -1,   567,    -1,
     209,    -1,   212,    -1,   213,    -1,   215,    -1,   216,    -1,
     219,    -1,   238,    -1,   233,    -1,   235,    -1,   242,    -1,
     239,    -1,   218,    -1,   234,    -1,   236,    -1,   237,    -1,
     220,    -1,   245,    -1,   210,    -1,   211,    -1,   223,    -1,
     122,   268,   137,   265,    -1,   123,   268,   137,   265,    -1,
      37,   268,   137,   265,    -1,   214,   268,   276,   265,    -1,
      48,   268,   202,   265,    -1,    -1,    72,   574,   267,   575,
     266,   265,    -1,   575,   576,    -1,   576,    -1,   577,    -1,
     578,    -1,   579,    -1,   583,    -1,   584,    -1,   585,    -1,
       1,    -1,    53,   268,   202,   265,    -1,    50,   268,   274,
     265,    -1,    -1,   109,   580,   268,   581,   265,    -1,   581,
     269,   582,    -1,   582,    -1,   204,    -1,    12,    -1,   253,
     268,   159,   265,    -1,   126,   268,   159,   265,    -1,    -1,
       4,   586,   268,   587,   265,    -1,   587,   269,   588,    -1,
     588,    -1,   204,    -1,    12,    -1,    23,   267,   590,   266,
     265,    -1,   590,   591,    -1,   591,    -1,   594,    -1,   595,
      -1,   596,    -1,   597,    -1,   602,    -1,   598,    -1,   599,
      -1,   600,    -1,   601,    -1,   603,    -1,   604,    -1,   605,
      -1,   593,    -1,   606,    -1,   607,    -1,   608,    -1,   609,
      -1,   592,    -1,     1,    -1,    44,   268,   202,   265,    -1,
     169,   268,   202,   265,    -1,    46,   268,   202,   265,    -1,
     255,   268,   202,   265,    -1,   256,   268,   202,   265,    -1,
     257,   268,   202,   265,    -1,   102,   268,   274,   265,    -1,
     103,   268,   274,   265,    -1,   113,   268,   137,   265,    -1,
     160,   268,   202,   265,    -1,   112,   268,   137,   265,    -1,
      39,   268,   137,   265,    -1,    38,   268,   137,   265,    -1,
     132,   268,   202,   265,    -1,   133,   268,   202,   265,    -1,
      14,   268,   202,   265,    -1,   149,   268,   137,   265,    -1,
     150,   268,   274,   265,    -1,   183,   267,   611,   266,   265,
      -1,   611,   612,    -1,   612,    -1,   613,    -1,   614,    -1,
     616,    -1,   618,    -1,   617,    -1,   615,    -1,   619,    -1,
       1,    -1,    60,   268,   202,   265,    -1,    87,   268,   202,
     265,    -1,    84,   268,   159,   265,    -1,   106,   268,   274,
     265,    -1,    82,   268,   202,   265,    -1,    45,   268,   202,
     265,    -1,    86,   268,   202,   265,    -1
};

/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,   410,   410,   411,   414,   415,   416,   417,   418,   419,
     420,   421,   422,   423,   424,   425,   426,   427,   428,   429,
     430,   431,   432,   433,   434,   435,   436,   440,   440,   441,
     445,   449,   453,   457,   461,   467,   467,   468,   469,   470,
     471,   478,   481,   481,   482,   482,   482,   484,   501,   512,
     515,   516,   517,   517,   518,   518,   519,   519,   520,   521,
     521,   522,   522,   523,   525,   559,   619,   633,   648,   657,
     671,   680,   708,   738,   761,   811,   813,   813,   814,   814,
     815,   815,   817,   826,   835,   848,   850,   851,   853,   853,
     854,   855,   855,   856,   856,   857,   857,   858,   858,   859,
     860,   862,   866,   870,   877,   884,   891,   898,   905,   912,
     919,   926,   930,   934,   938,   942,   946,   950,   956,   966,
     965,  1059,  1059,  1060,  1060,  1061,  1061,  1061,  1061,  1062,
    1062,  1063,  1063,  1063,  1064,  1064,  1064,  1065,  1065,  1065,
    1066,  1066,  1066,  1066,  1067,  1067,  1068,  1068,  1070,  1082,
    1094,  1128,  1140,  1151,  1193,  1203,  1202,  1208,  1208,  1209,
    1213,  1217,  1221,  1225,  1229,  1233,  1237,  1241,  1245,  1249,
    1253,  1257,  1261,  1265,  1269,  1273,  1277,  1281,  1285,  1291,
    1302,  1313,  1324,  1335,  1346,  1357,  1368,  1379,  1390,  1401,
    1412,  1423,  1434,  1446,  1445,  1449,  1449,  1450,  1450,  1451,
    1451,  1453,  1460,  1467,  1474,  1481,  1488,  1495,  1502,  1509,
    1516,  1523,  1530,  1537,  1544,  1551,  1558,  1572,  1571,  1621,
    1621,  1623,  1623,  1624,  1625,  1625,  1626,  1627,  1628,  1629,
    1630,  1631,  1632,  1633,  1634,  1635,  1636,  1638,  1647,  1656,
    1662,  1668,  1674,  1680,  1686,  1692,  1698,  1704,  1710,  1716,
    1722,  1731,  1730,  1745,  1745,  1746,  1746,  1746,  1748,  1757,
    1776,  1775,  1795,  1794,  1799,  1799,  1800,  1804,  1810,  1810,
    1811,  1811,  1811,  1811,  1811,  1811,  1813,  1813,  1815,  1815,
    1817,  1831,  1851,  1860,  1869,  1882,  1881,  1954,  1954,  1955,
    1955,  1955,  1955,  1956,  1956,  1957,  1957,  1957,  1958,  1958,
    1958,  1959,  1959,  1959,  1960,  1960,  1960,  1961,  1963,  2000,
    2013,  2024,  2033,  2045,  2044,  2048,  2048,  2049,  2049,  2050,
    2050,  2052,  2060,  2067,  2074,  2081,  2088,  2095,  2102,  2109,
    2116,  2125,  2136,  2147,  2158,  2169,  2180,  2192,  2212,  2231,
    2241,  2250,  2261,  2281,  2280,  2296,  2296,  2297,  2297,  2297,
    2297,  2299,  2308,  2323,  2337,  2336,  2352,  2352,  2353,  2353,
    2353,  2353,  2355,  2364,  2387,  2386,  2392,  2392,  2393,  2397,
    2401,  2405,  2409,  2413,  2417,  2421,  2425,  2429,  2433,  2437,
    2447,  2446,  2463,  2463,  2464,  2464,  2464,  2466,  2473,  2472,
    2478,  2478,  2479,  2483,  2487,  2491,  2495,  2499,  2503,  2507,
    2511,  2515,  2519,  2523,  2533,  2532,  2678,  2678,  2679,  2679,
    2680,  2680,  2680,  2681,  2681,  2682,  2682,  2683,  2683,  2683,
    2684,  2684,  2684,  2685,  2685,  2685,  2686,  2686,  2687,  2687,
    2689,  2701,  2713,  2722,  2748,  2766,  2784,  2790,  2794,  2802,
    2812,  2811,  2815,  2815,  2816,  2816,  2817,  2817,  2819,  2826,
    2837,  2844,  2851,  2858,  2868,  2909,  2920,  2931,  2946,  2957,
    2968,  2981,  2994,  3003,  3039,  3038,  3103,  3102,  3106,  3106,
    3107,  3113,  3113,  3114,  3114,  3114,  3114,  3116,  3135,  3145,
    3144,  3166,  3166,  3167,  3167,  3167,  3169,  3178,  3190,  3192,
    3192,  3193,  3193,  3195,  3217,  3216,  3259,  3258,  3262,  3262,
    3263,  3269,  3269,  3270,  3270,  3270,  3270,  3272,  3278,  3287,
    3290,  3290,  3291,  3291,  3292,  3292,  3293,  3293,  3294,  3294,
    3295,  3295,  3296,  3296,  3297,  3297,  3298,  3298,  3299,  3299,
    3300,  3300,  3301,  3301,  3302,  3302,  3303,  3303,  3304,  3304,
    3305,  3305,  3306,  3306,  3307,  3307,  3308,  3308,  3309,  3309,
    3310,  3310,  3311,  3312,  3312,  3313,  3313,  3314,  3314,  3315,
    3315,  3316,  3316,  3317,  3317,  3318,  3318,  3319,  3323,  3328,
    3333,  3338,  3343,  3348,  3353,  3358,  3363,  3368,  3373,  3378,
    3383,  3388,  3393,  3398,  3403,  3408,  3414,  3425,  3430,  3439,
    3444,  3449,  3454,  3459,  3464,  3467,  3472,  3475,  3480,  3485,
    3490,  3495,  3500,  3505,  3510,  3515,  3520,  3531,  3536,  3541,
    3546,  3555,  3587,  3605,  3610,  3619,  3624,  3629,  3635,  3634,
    3639,  3639,  3640,  3643,  3646,  3649,  3652,  3655,  3658,  3661,
    3664,  3667,  3670,  3673,  3676,  3679,  3682,  3685,  3688,  3691,
    3694,  3697,  3703,  3702,  3707,  3707,  3708,  3711,  3714,  3717,
    3720,  3723,  3726,  3729,  3732,  3735,  3738,  3741,  3744,  3747,
    3750,  3753,  3756,  3759,  3762,  3765,  3770,  3775,  3780,  3785,
    3790,  3799,  3798,  3822,  3822,  3823,  3824,  3825,  3826,  3827,
    3828,  3829,  3831,  3837,  3844,  3843,  3848,  3848,  3849,  3853,
    3859,  3893,  3903,  3902,  3952,  3952,  3953,  3957,  3966,  3969,
    3969,  3970,  3970,  3971,  3971,  3972,  3972,  3973,  3973,  3974,
    3974,  3975,  3976,  3976,  3977,  3977,  3978,  3978,  3979,  3979,
    3981,  3986,  3991,  3996,  4001,  4006,  4011,  4016,  4021,  4026,
    4031,  4036,  4041,  4046,  4051,  4056,  4061,  4066,  4074,  4077,
    4077,  4078,  4078,  4079,  4080,  4081,  4081,  4082,  4083,  4085,
    4091,  4097,  4106,  4120,  4126,  4132
};
#endif

#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
static const char *const yytname[] =
{
  "$end", "error", "$undefined", "ACCEPT_PASSWORD", "ACTION", "ADMIN",
  "AFTYPE", "T_ALLOW", "ANTI_NICK_FLOOD", "ANTI_SPAM_EXIT_MESSAGE_TIME",
  "AUTOCONN", "AUTOJOIN", "T_BLOCK", "BURST_AWAY", "BURST_TOPICWHO",
  "BYTES", "KBYTES", "MBYTES", "GBYTES", "TBYTES", "CALLER_ID_WAIT",
  "CAN_FLOOD", "CAN_IDLE", "CHANNEL", "CHARSET", "CIDR_BITLEN_IPV4",
  "CIDR_BITLEN_IPV6", "CIPHER_PREFERENCE", "CLASS", "CODEPAGE",
  "COMPRESSED", "COMPRESSION_LEVEL", "CONNECT", "CONNECTFREQ", "CP_FILE",
  "CRYPTLINK", "DEFAULT_CIPHER_PREFERENCE", "DEFAULT_FLOODCOUNT",
  "DEFAULT_SPLIT_SERVER_COUNT", "DEFAULT_SPLIT_USER_COUNT", "DENY",
  "DESCRIPTION", "DIE", "DISABLE_AUTH", "DISABLE_FAKE_CHANNELS",
  "DISABLE_HIDDEN", "DISABLE_LOCAL_CHANNELS", "DISABLE_REMOTE_COMMANDS",
  "DOT_IN_IP6_ADDR", "DOTS_IN_IDENT", "DURATION", "EGDPOOL_PATH", "EMAIL",
  "ENABLE", "ENCRYPTED", "EXCEED_LIMIT", "EXEMPT", "FAILED_OPER_NOTICE",
  "FAKENAME", "IRCD_FLAGS", "FLATTEN_LINKS", "FFAILED_OPERLOG", "FKILLLOG",
  "FKLINELOG", "FGLINELOG", "FIOERRLOG", "FOPERLOG", "FOPERSPYLOG",
  "FUSERLOG", "GECOS", "GENERAL", "GLINE", "GLINES", "GLINE_EXEMPT",
  "GLINE_LOG", "GLINE_TIME", "GLINE_MIN_CIDR", "GLINE_MIN_CIDR6",
  "GLOBAL_KILL", "IRCD_AUTH", "NEED_IDENT", "HAVENT_READ_CONF", "HIDDEN",
  "HIDDEN_ADMIN", "HIDDEN_NAME", "HIDDEN_OPER", "HIDE_SERVER_IPS",
  "HIDE_SERVERS", "HIDE_SPOOF_IPS", "HOST", "HUB", "HUB_MASK", "IDLETIME",
  "IGNORE_BOGUS_TS", "INVISIBLE_ON_CONNECT", "IP", "KILL",
  "KILL_CHASE_TIME_LIMIT", "KLINE", "KLINE_EXEMPT", "KLINE_REASON",
  "KLINE_WITH_REASON", "KNOCK_DELAY", "KNOCK_DELAY_CHANNEL", "LAZYLINK",
  "LEAF_MASK", "LINKS_DELAY", "LISTEN", "T_LOG", "LOGGING", "LOG_LEVEL",
  "MAX_ACCEPT", "MAX_BANS", "MAX_CHANS_PER_USER", "MAX_GLOBAL",
  "MAX_IDENT", "MAX_LOCAL", "MAX_NICK_CHANGES", "MAX_NICK_TIME",
  "MAX_NUMBER", "MAX_TARGETS", "MESSAGE_LOCALE", "MIN_NONWILDCARD",
  "MIN_NONWILDCARD_SIMPLE", "MODULE", "MODULES", "NAME", "NEED_PASSWORD",
  "NETWORK_DESC", "NETWORK_NAME", "NICK", "NICK_CHANGES",
  "NO_CREATE_ON_SPLIT", "NO_JOIN_ON_SPLIT", "NO_OPER_FLOOD", "NO_TILDE",
  "NOT", "NUMBER", "NUMBER_PER_IDENT", "NUMBER_PER_CIDR", "NUMBER_PER_IP",
  "NUMBER_PER_IP_GLOBAL", "OPERATOR", "OPERS_BYPASS_CALLERID", "OPER_LOG",
  "OPER_ONLY_UMODES", "OPER_PASS_RESV", "OPER_SPY_T", "OPER_UMODES",
  "JOIN_FLOOD_COUNT", "JOIN_FLOOD_TIME", "PACE_WAIT", "PACE_WAIT_SIMPLE",
  "PASSWORD", "PATH", "PING_COOKIE", "PING_TIME", "PING_WARNING", "PORT",
  "QSTRING", "QUIET_ON_BAN", "REASON", "REDIRPORT", "REDIRSERV", "REGEX_T",
  "REHASH", "TREJECT_HOLD_TIME", "REMOTE", "REMOTEBAN",
  "RESTRICT_CHANNELS", "RESTRICTED", "RSA_PRIVATE_KEY_FILE",
  "RSA_PUBLIC_KEY_FILE", "SSL_CERTIFICATE_FILE", "RESV", "RESV_EXEMPT",
  "SECONDS", "MINUTES", "HOURS", "DAYS", "WEEKS", "SENDQ", "SEND_PASSWORD",
  "SERVERHIDE", "SERVERINFO", "SERVLINK_PATH", "IRCD_SID",
  "TKLINE_EXPIRE_NOTICES", "T_SHARED", "T_CLUSTER", "TYPE", "SHORT_MOTD",
  "SILENT", "SPOOF", "SPOOF_MASK", "SPOOF_NOTICE", "STATS_E_DISABLED",
  "STATS_I_OPER_ONLY", "STATS_K_OPER_ONLY", "STATS_O_OPER_ONLY",
  "STATS_P_OPER_ONLY", "SVS", "TBOOL", "TMASKED", "T_REJECT",
  "TS_MAX_DELTA", "TS_WARN_DELTA", "TWODOTS", "T_ALL", "T_BOTS",
  "T_SOFTCALLERID", "T_CALLERID", "T_CCONN", "T_CCONN_FULL",
  "T_CLIENT_FLOOD", "T_DEAF", "T_DEBUG", "T_DRONE", "T_EXTERNAL", "T_FULL",
  "T_INVISIBLE", "T_IPV4", "T_IPV6", "T_LOCOPS", "T_LOGPATH", "T_L_CRIT",
  "T_L_DEBUG", "T_L_ERROR", "T_L_INFO", "T_L_NOTICE", "T_L_TRACE",
  "T_L_WARN", "T_MAX_CLIENTS", "T_NCHANGE", "T_OPERWALL", "T_REJ",
  "T_SERVNOTICE", "T_SERVICESNOTICE", "T_SKILL", "T_SPY", "T_SSL",
  "T_UMODES", "T_UNAUTH", "T_UNRESV", "T_UNXLINE", "T_WALLOP",
  "THROTTLE_TIME", "TOPICBURST", "TRUE_NO_OPER_FLOOD", "TKLINE", "TXLINE",
  "TRESV", "UNKLINE", "USER", "USE_EGD", "USE_EXCEPT", "USE_INVEX",
  "USE_KNOCK", "USE_LOGGING", "USE_WHOIS_ACTUALLY", "VHOST", "VHOST6",
  "XLINE", "WARN", "WARN_NO_NLINE", "';'", "'}'", "'{'", "'='", "','",
  "$accept", "conf", "conf_item", "timespec_", "timespec", "sizespec_",
  "sizespec", "modules_entry", "modules_items", "modules_item",
  "modules_module", "modules_path", "serverinfo_entry", "serverinfo_items",
  "serverinfo_item", "serverinfo_ssl_certificate_file",
  "serverinfo_rsa_private_key_file", "serverinfo_name", "serverinfo_sid",
  "serverinfo_description", "serverinfo_network_name",
  "serverinfo_network_desc", "serverinfo_vhost", "serverinfo_vhost6",
  "serverinfo_max_clients", "serverinfo_hub", "admin_entry", "admin_items",
  "admin_item", "admin_name", "admin_email", "admin_description",
  "logging_entry", "logging_items", "logging_item", "logging_path",
  "logging_oper_log", "logging_fuserlog", "logging_ffailed_operlog",
  "logging_foperlog", "logging_foperspylog", "logging_fglinelog",
  "logging_fklinelog", "logging_ioerrlog", "logging_killlog",
  "logging_log_level", "logging_use_logging", "oper_entry", "@1",
  "oper_name_b", "oper_items", "oper_item", "oper_name", "oper_name_t",
  "oper_user", "oper_password", "oper_encrypted",
  "oper_rsa_public_key_file", "oper_class", "oper_umodes", "@2",
  "oper_umodes_items", "oper_umodes_item", "oper_global_kill",
  "oper_remote", "oper_remoteban", "oper_kline", "oper_xline",
  "oper_unkline", "oper_gline", "oper_nick_changes", "oper_die",
  "oper_rehash", "oper_admin", "oper_hidden_admin", "oper_hidden_oper",
  "oper_operwall", "oper_flags", "@3", "oper_flags_items",
  "oper_flags_item", "@4", "@5", "oper_flags_item_atom", "class_entry",
  "@6", "class_name_b", "class_items", "class_item", "class_name",
  "class_name_t", "class_ping_time", "class_ping_warning",
  "class_number_per_ip", "class_connectfreq", "class_max_number",
  "class_max_global", "class_max_local", "class_max_ident", "class_sendq",
  "class_cidr_bitlen_ipv4", "class_cidr_bitlen_ipv6",
  "class_number_per_cidr", "charset_entry", "@7", "charset_items",
  "charset_item", "charset_name", "charset_file", "listen_entry", "@8",
  "listen_flags", "@9", "listen_flags_items", "listen_flags_item",
  "listen_items", "listen_item", "listen_port", "@10", "port_items",
  "port_item", "listen_address", "listen_host", "listen_charset",
  "auth_entry", "@11", "auth_items", "auth_item", "auth_user",
  "auth_passwd", "auth_spoof_notice", "auth_class", "auth_encrypted",
  "auth_flags", "@12", "auth_flags_items", "auth_flags_item", "@13", "@14",
  "auth_flags_item_atom", "auth_kline_exempt", "auth_need_ident",
  "auth_exceed_limit", "auth_can_flood", "auth_no_tilde",
  "auth_gline_exempt", "auth_spoof", "auth_spoof_mask", "auth_redir_serv",
  "auth_redir_port", "auth_need_password", "auth_autojoin", "resv_entry",
  "@15", "resv_items", "resv_item", "resv_creason", "resv_channel",
  "resv_nick", "shared_entry", "@16", "shared_items", "shared_item",
  "shared_name", "shared_user", "shared_type", "@17", "shared_types",
  "shared_type_item", "cluster_entry", "@18", "cluster_items",
  "cluster_item", "cluster_name", "cluster_type", "@19", "cluster_types",
  "cluster_type_item", "connect_entry", "@20", "connect_name_b",
  "connect_items", "connect_item", "connect_name", "connect_name_t",
  "connect_host", "connect_vhost", "connect_send_password",
  "connect_accept_password", "connect_port", "connect_aftype",
  "connect_fakename", "connect_flags", "@21", "connect_flags_items",
  "connect_flags_item", "@22", "@23", "connect_flags_item_atom",
  "connect_rsa_public_key_file", "connect_encrypted", "connect_cryptlink",
  "connect_compressed", "connect_auto", "connect_topicburst",
  "connect_hub_mask", "connect_leaf_mask", "connect_class",
  "connect_cipher_preference", "kill_entry", "@24", "kill_type", "@25",
  "kill_type_items", "kill_type_item", "kill_items", "kill_item",
  "kill_user", "kill_reason", "deny_entry", "@26", "deny_items",
  "deny_item", "deny_ip", "deny_reason", "exempt_entry", "exempt_items",
  "exempt_item", "exempt_ip", "gecos_entry", "@27", "gecos_flags", "@28",
  "gecos_flags_items", "gecos_flags_item", "gecos_items", "gecos_item",
  "gecos_name", "gecos_reason", "general_entry", "general_items",
  "general_item", "general_gline_min_cidr", "general_gline_min_cidr6",
  "general_burst_away", "general_use_whois_actually",
  "general_reject_hold_time", "general_tkline_expire_notices",
  "general_kill_chase_time_limit", "general_hide_spoof_ips",
  "general_ignore_bogus_ts", "general_disable_remote_commands",
  "general_failed_oper_notice", "general_anti_nick_flood",
  "general_max_nick_time", "general_max_nick_changes",
  "general_max_accept", "general_anti_spam_exit_message_time",
  "general_ts_warn_delta", "general_ts_max_delta",
  "general_havent_read_conf", "general_kline_with_reason",
  "general_kline_reason", "general_invisible_on_connect",
  "general_warn_no_nline", "general_stats_e_disabled",
  "general_stats_o_oper_only", "general_stats_P_oper_only",
  "general_stats_k_oper_only", "general_stats_i_oper_only",
  "general_pace_wait", "general_caller_id_wait",
  "general_opers_bypass_callerid", "general_pace_wait_simple",
  "general_short_motd", "general_no_oper_flood",
  "general_true_no_oper_flood", "general_oper_pass_resv",
  "general_message_locale", "general_idletime", "general_dots_in_ident",
  "general_max_targets", "general_servlink_path",
  "general_default_cipher_preference", "general_compression_level",
  "general_use_egd", "general_egdpool_path", "general_ping_cookie",
  "general_disable_auth", "general_throttle_time", "general_oper_umodes",
  "@29", "umode_oitems", "umode_oitem", "general_oper_only_umodes", "@30",
  "umode_items", "umode_item", "general_min_nonwildcard",
  "general_min_nonwildcard_simple", "general_default_floodcount",
  "general_client_flood", "general_dot_in_ip6_addr", "gline_entry", "@31",
  "gline_items", "gline_item", "gline_enable", "gline_duration",
  "gline_logging", "@32", "gline_logging_types", "gline_logging_type_item",
  "gline_user", "gline_server", "gline_action", "@33", "gdeny_types",
  "gdeny_type_item", "channel_entry", "channel_items", "channel_item",
  "channel_disable_fake_channels", "channel_restrict_channels",
  "channel_disable_local_channels", "channel_use_except",
  "channel_use_invex", "channel_use_knock", "channel_knock_delay",
  "channel_knock_delay_channel", "channel_max_chans_per_user",
  "channel_quiet_on_ban", "channel_max_bans",
  "channel_default_split_user_count", "channel_default_split_server_count",
  "channel_no_create_on_split", "channel_no_join_on_split",
  "channel_burst_topicwho", "channel_jflood_count", "channel_jflood_time",
  "serverhide_entry", "serverhide_items", "serverhide_item",
  "serverhide_flatten_links", "serverhide_hide_servers",
  "serverhide_hidden_name", "serverhide_links_delay", "serverhide_hidden",
  "serverhide_disable_hidden", "serverhide_hide_server_ips", 0
};
#endif

# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
   token YYLEX-NUM.  */
static const yytype_uint16 yytoknum[] =
{
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,
     315,   316,   317,   318,   319,   320,   321,   322,   323,   324,
     325,   326,   327,   328,   329,   330,   331,   332,   333,   334,
     335,   336,   337,   338,   339,   340,   341,   342,   343,   344,
     345,   346,   347,   348,   349,   350,   351,   352,   353,   354,
     355,   356,   357,   358,   359,   360,   361,   362,   363,   364,
     365,   366,   367,   368,   369,   370,   371,   372,   373,   374,
     375,   376,   377,   378,   379,   380,   381,   382,   383,   384,
     385,   386,   387,   388,   389,   390,   391,   392,   393,   394,
     395,   396,   397,   398,   399,   400,   401,   402,   403,   404,
     405,   406,   407,   408,   409,   410,   411,   412,   413,   414,
     415,   416,   417,   418,   419,   420,   421,   422,   423,   424,
     425,   426,   427,   428,   429,   430,   431,   432,   433,   434,
     435,   436,   437,   438,   439,   440,   441,   442,   443,   444,
     445,   446,   447,   448,   449,   450,   451,   452,   453,   454,
     455,   456,   457,   458,   459,   460,   461,   462,   463,   464,
     465,   466,   467,   468,   469,   470,   471,   472,   473,   474,
     475,   476,   477,   478,   479,   480,   481,   482,   483,   484,
     485,   486,   487,   488,   489,   490,   491,   492,   493,   494,
     495,   496,   497,   498,   499,   500,   501,   502,   503,   504,
     505,   506,   507,   508,   509,   510,   511,   512,   513,   514,
     515,   516,   517,   518,   519,    59,   125,   123,    61,    44
};
# endif

/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const yytype_uint16 yyr1[] =
{
       0,   270,   271,   271,   272,   272,   272,   272,   272,   272,
     272,   272,   272,   272,   272,   272,   272,   272,   272,   272,
     272,   272,   272,   272,   272,   272,   272,   273,   273,   274,
     274,   274,   274,   274,   274,   275,   275,   276,   276,   276,
     276,   277,   278,   278,   279,   279,   279,   280,   281,   282,
     283,   283,   284,   284,   284,   284,   284,   284,   284,   284,
     284,   284,   284,   284,   285,   286,   287,   288,   289,   290,
     291,   292,   293,   294,   295,   296,   297,   297,   298,   298,
     298,   298,   299,   300,   301,   302,   303,   303,   304,   304,
     304,   304,   304,   304,   304,   304,   304,   304,   304,   304,
     304,   305,   306,   307,   308,   309,   310,   311,   312,   313,
     314,   315,   315,   315,   315,   315,   315,   315,   316,   318,
     317,   319,   319,   320,   320,   321,   321,   321,   321,   321,
     321,   321,   321,   321,   321,   321,   321,   321,   321,   321,
     321,   321,   321,   321,   321,   321,   321,   321,   322,   323,
     324,   325,   326,   327,   328,   330,   329,   331,   331,   332,
     332,   332,   332,   332,   332,   332,   332,   332,   332,   332,
     332,   332,   332,   332,   332,   332,   332,   332,   332,   333,
     334,   335,   336,   337,   338,   339,   340,   341,   342,   343,
     344,   345,   346,   348,   347,   349,   349,   351,   350,   352,
     350,   353,   353,   353,   353,   353,   353,   353,   353,   353,
     353,   353,   353,   353,   353,   353,   353,   355,   354,   356,
     356,   357,   357,   358,   358,   358,   358,   358,   358,   358,
     358,   358,   358,   358,   358,   358,   358,   359,   360,   361,
     362,   363,   364,   365,   366,   367,   368,   369,   370,   371,
     372,   374,   373,   375,   375,   376,   376,   376,   377,   378,
     380,   379,   382,   381,   383,   383,   384,   384,   385,   385,
     386,   386,   386,   386,   386,   386,   388,   387,   389,   389,
     390,   390,   391,   392,   393,   395,   394,   396,   396,   397,
     397,   397,   397,   397,   397,   397,   397,   397,   397,   397,
     397,   397,   397,   397,   397,   397,   397,   397,   398,   399,
     400,   401,   402,   404,   403,   405,   405,   407,   406,   408,
     406,   409,   409,   409,   409,   409,   409,   409,   409,   409,
     409,   410,   411,   412,   413,   414,   415,   416,   417,   418,
     419,   420,   421,   423,   422,   424,   424,   425,   425,   425,
     425,   426,   427,   428,   430,   429,   431,   431,   432,   432,
     432,   432,   433,   434,   436,   435,   437,   437,   438,   438,
     438,   438,   438,   438,   438,   438,   438,   438,   438,   438,
     440,   439,   441,   441,   442,   442,   442,   443,   445,   444,
     446,   446,   447,   447,   447,   447,   447,   447,   447,   447,
     447,   447,   447,   447,   449,   448,   450,   450,   451,   451,
     452,   452,   452,   452,   452,   452,   452,   452,   452,   452,
     452,   452,   452,   452,   452,   452,   452,   452,   452,   452,
     453,   454,   455,   456,   457,   458,   459,   460,   460,   461,
     463,   462,   464,   464,   466,   465,   467,   465,   468,   468,
     468,   468,   468,   468,   469,   470,   471,   472,   473,   474,
     475,   476,   477,   478,   480,   479,   482,   481,   483,   483,
     484,   485,   485,   486,   486,   486,   486,   487,   488,   490,
     489,   491,   491,   492,   492,   492,   493,   494,   495,   496,
     496,   497,   497,   498,   500,   499,   502,   501,   503,   503,
     504,   505,   505,   506,   506,   506,   506,   507,   508,   509,
     510,   510,   511,   511,   511,   511,   511,   511,   511,   511,
     511,   511,   511,   511,   511,   511,   511,   511,   511,   511,
     511,   511,   511,   511,   511,   511,   511,   511,   511,   511,
     511,   511,   511,   511,   511,   511,   511,   511,   511,   511,
     511,   511,   511,   511,   511,   511,   511,   511,   511,   511,
     511,   511,   511,   511,   511,   511,   511,   511,   512,   513,
     514,   515,   516,   517,   518,   519,   520,   521,   522,   523,
     524,   525,   526,   527,   528,   529,   530,   531,   532,   533,
     534,   535,   536,   537,   538,   538,   539,   539,   540,   541,
     542,   543,   544,   545,   546,   547,   548,   549,   550,   551,
     552,   553,   554,   555,   556,   557,   558,   559,   561,   560,
     562,   562,   563,   563,   563,   563,   563,   563,   563,   563,
     563,   563,   563,   563,   563,   563,   563,   563,   563,   563,
     563,   563,   565,   564,   566,   566,   567,   567,   567,   567,
     567,   567,   567,   567,   567,   567,   567,   567,   567,   567,
     567,   567,   567,   567,   567,   567,   568,   569,   570,   571,
     572,   574,   573,   575,   575,   576,   576,   576,   576,   576,
     576,   576,   577,   578,   580,   579,   581,   581,   582,   582,
     583,   584,   586,   585,   587,   587,   588,   588,   589,   590,
     590,   591,   591,   591,   591,   591,   591,   591,   591,   591,
     591,   591,   591,   591,   591,   591,   591,   591,   591,   591,
     592,   593,   594,   595,   596,   597,   598,   599,   600,   601,
     602,   603,   604,   605,   606,   607,   608,   609,   610,   611,
     611,   612,   612,   612,   612,   612,   612,   612,   612,   613,
     614,   615,   616,   617,   618,   619
};

/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
static const yytype_uint8 yyr2[] =
{
       0,     2,     0,     2,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     2,     2,     0,     1,     2,
       3,     3,     3,     3,     3,     0,     1,     2,     3,     3,
       3,     5,     2,     1,     1,     1,     2,     4,     4,     5,
       2,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     2,     4,     4,     4,     4,     4,     4,
       4,     4,     4,     4,     4,     5,     2,     1,     1,     1,
       1,     2,     4,     4,     4,     5,     2,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       2,     4,     4,     4,     4,     4,     4,     4,     4,     4,
       4,     4,     4,     4,     4,     4,     4,     4,     4,     0,
       7,     0,     1,     2,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     2,     4,     1,
       4,     4,     4,     4,     4,     0,     5,     3,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     4,
       4,     4,     4,     4,     4,     4,     4,     4,     4,     4,
       4,     4,     4,     0,     5,     3,     1,     0,     3,     0,
       2,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     0,     7,     0,
       1,     2,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     2,     4,     1,     4,
       4,     4,     4,     4,     4,     4,     4,     4,     4,     4,
       4,     0,     6,     2,     1,     1,     1,     2,     4,     4,
       0,     6,     0,     5,     3,     1,     1,     1,     2,     1,
       1,     1,     1,     1,     1,     2,     0,     5,     3,     1,
       1,     3,     4,     4,     4,     0,     6,     2,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     2,     4,     4,
       4,     4,     4,     0,     5,     3,     1,     0,     3,     0,
       2,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     4,     4,     4,     4,     4,     4,     4,     4,     4,
       4,     4,     4,     0,     6,     2,     1,     1,     1,     1,
       2,     4,     4,     4,     0,     6,     2,     1,     1,     1,
       1,     2,     4,     4,     0,     5,     3,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       0,     6,     2,     1,     1,     1,     2,     4,     0,     5,
       3,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     0,     7,     0,     1,     2,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     2,
       4,     1,     4,     4,     4,     4,     4,     4,     4,     4,
       0,     5,     3,     1,     0,     3,     0,     2,     1,     1,
       1,     1,     1,     1,     4,     4,     4,     4,     4,     4,
       4,     4,     4,     4,     0,     6,     0,     5,     3,     1,
       1,     2,     1,     1,     1,     1,     1,     4,     4,     0,
       6,     2,     1,     1,     1,     1,     4,     4,     5,     2,
       1,     1,     1,     4,     0,     6,     0,     5,     3,     1,
       1,     2,     1,     1,     1,     1,     1,     4,     4,     5,
       2,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     4,     4,
       4,     4,     4,     4,     4,     4,     4,     4,     4,     4,
       4,     4,     4,     4,     4,     4,     4,     4,     4,     4,
       4,     4,     4,     4,     4,     4,     4,     4,     4,     4,
       4,     4,     4,     4,     4,     4,     4,     4,     4,     4,
       4,     4,     4,     4,     4,     4,     4,     4,     0,     5,
       3,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     0,     5,     3,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     4,     4,     4,     4,
       4,     0,     6,     2,     1,     1,     1,     1,     1,     1,
       1,     1,     4,     4,     0,     5,     3,     1,     1,     1,
       4,     4,     0,     5,     3,     1,     1,     1,     5,     2,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       4,     4,     4,     4,     4,     4,     4,     4,     4,     4,
       4,     4,     4,     4,     4,     4,     4,     4,     5,     2,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     4,
       4,     4,     4,     4,     4,     4
};

/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
   STATE-NUM when YYTABLE doesn't specify something else to do.  Zero
   means the default is an error.  */
static const yytype_uint16 yydefact[] =
{
       2,     0,     1,     0,     0,     0,   251,   217,   404,   479,
       0,   494,     0,   671,   285,   464,   260,     0,     0,   119,
     343,     0,     0,   354,   380,     3,    24,    12,     4,     5,
       6,     8,     9,    10,    11,    14,    15,    16,    17,    18,
      19,    20,    23,    21,    22,     7,    13,    25,    26,     0,
       0,     0,   219,   406,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,   121,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,    77,    78,    80,    79,   719,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   700,
     718,   713,   701,   702,   703,   704,   706,   707,   708,   709,
     705,   710,   711,   712,   714,   715,   716,   717,     0,   238,
       0,   220,   431,     0,   407,     0,   492,     0,     0,   490,
     491,     0,   567,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   642,     0,   618,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   511,
     562,   563,   560,   564,   565,   561,   522,   512,   513,   551,
     514,   515,   516,   517,   518,   519,   520,   521,   556,   523,
     524,   525,   526,   566,   528,   533,   529,   531,   530,   545,
     546,   532,   534,   535,   536,   537,   539,   538,   527,   541,
     550,   552,   553,   542,   543,   558,   559,   555,   544,   540,
     548,   549,   547,   554,   557,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,    87,    88,    89,    92,    99,    93,    97,
      94,    95,    98,    96,    90,    91,     0,     0,     0,     0,
      43,    44,    45,   149,     0,   122,     0,   748,     0,     0,
       0,     0,     0,     0,     0,     0,   740,   741,   742,   746,
     743,   745,   744,   747,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    51,    62,    59,
      52,    61,    55,    56,    57,    53,    60,    58,    54,     0,
       0,    81,     0,     0,     0,     0,    76,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,   699,     0,     0,     0,
       0,   254,   255,   256,     0,     0,   485,     0,     0,     0,
     482,   483,   484,     0,     0,   489,   506,     0,     0,   496,
     505,     0,   502,   503,   504,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   510,   681,   692,     0,     0,   684,     0,     0,     0,
     674,   675,   676,   677,   678,   679,   680,     0,     0,     0,
       0,     0,     0,   313,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   288,   289,   290,
     300,   291,   305,   292,   293,   294,   295,   303,   296,   297,
     298,   299,   301,   302,   304,   306,   476,     0,   466,     0,
     475,     0,   472,   473,   474,     0,     0,   262,     0,     0,
       0,   271,     0,   269,   270,   272,   273,   274,   100,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,    86,    46,     0,     0,     0,    42,     0,     0,
       0,     0,     0,     0,   346,   347,   348,   349,     0,     0,
       0,     0,     0,     0,     0,     0,   739,    63,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
      50,     0,     0,   364,     0,     0,   357,   358,   359,   360,
       0,     0,   388,     0,   383,   384,   385,     0,     0,     0,
      75,     0,     0,     0,     0,     0,    27,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     698,   257,     0,     0,     0,   253,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   222,   223,   226,   227,   229,   230,   231,   232,   233,
     234,   235,   224,   225,   228,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   440,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,   409,   410,   411,   412,
     413,   414,   416,   415,   417,   418,   426,   423,   425,   424,
     422,   428,   419,   420,   421,   427,     0,     0,     0,   481,
       0,   488,     0,     0,     0,     0,   501,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    35,     0,
       0,     0,     0,     0,     0,   509,     0,     0,     0,     0,
       0,     0,     0,   673,   307,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,   287,     0,     0,     0,     0,   471,
     275,     0,     0,     0,     0,     0,     0,   268,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    85,     0,     0,    41,
       0,     0,     0,     0,     0,   193,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   155,
       0,     0,     0,     0,   124,   125,   126,   127,   144,   145,
     131,   130,   132,   133,   139,   134,   135,   136,   137,   138,
     140,   141,   142,   128,   129,   143,   146,   350,     0,     0,
       0,     0,   345,     0,     0,     0,     0,     0,     0,     0,
     738,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,    49,   361,     0,     0,     0,     0,   356,   386,
       0,     0,     0,   382,    84,    83,    82,   735,   732,   731,
     720,   722,    27,    27,    27,    27,    27,    29,    28,   726,
     727,   730,   728,   733,   734,   736,   737,   729,   721,   723,
     724,   725,     0,     0,   252,   236,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     221,   429,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   408,     0,     0,   480,   493,     0,     0,     0,
     495,   579,   583,   570,   599,   612,   611,   668,   616,   577,
     670,   608,   614,   578,   568,   569,   586,   575,   607,   576,
     589,   574,   588,   587,   582,   581,   580,   609,   606,   666,
     667,   603,   600,   646,   663,   664,   647,   648,   649,   650,
     657,   651,   661,   665,   653,   658,   654,   659,   660,   652,
     656,   655,   662,     0,   645,   605,   622,   639,   640,   623,
     624,   625,   626,   633,   627,   637,   641,   629,   634,   630,
     635,   636,   628,   632,   631,   638,     0,   621,   598,   601,
     615,   572,   610,   573,   602,   591,   596,   597,   594,   595,
     592,   593,   585,   584,    35,    35,    35,    37,    36,   669,
     617,   604,   613,   571,   590,     0,     0,     0,     0,     0,
       0,   672,     0,     0,     0,     0,     0,   319,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
     286,     0,     0,     0,   465,     0,     0,     0,     0,   280,
     276,   279,   261,   104,   110,   108,   107,   109,   105,   106,
     103,   111,   117,   112,   116,   114,   115,   113,   102,   101,
     118,    47,    48,   147,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   123,     0,     0,
       0,   344,   754,   749,   753,   751,   755,   750,   752,    68,
      74,    66,    70,    69,    65,    64,    67,    73,    71,    72,
       0,     0,     0,   355,     0,     0,   381,    30,    31,    32,
      33,    34,   259,   258,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   218,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,   446,     0,
       0,     0,     0,     0,     0,     0,     0,     0,   405,   486,
     487,   507,   508,   500,     0,   499,   643,     0,   619,     0,
      38,    39,    40,   697,   696,     0,   695,   683,   682,   689,
     688,     0,   687,   691,   690,   342,   334,   311,   312,   333,
     317,     0,   316,     0,   336,   332,   331,   341,   335,   309,
     340,   339,   337,   338,   310,   308,   478,   470,     0,   469,
     477,   284,   267,   266,     0,   265,   283,   282,     0,     0,
       0,     0,     0,     0,     0,   199,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   120,   352,   353,   351,   362,   368,   374,
     378,   379,   377,   376,   373,   369,   372,   375,   370,   371,
       0,   367,   363,   387,   392,   398,   402,   403,   401,   400,
     397,   393,   396,   399,   394,   395,     0,   391,   248,   249,
     242,   244,   246,   245,   243,   237,   250,   241,   239,   240,
     247,   435,   437,   438,   458,   463,   462,   457,   456,   455,
     439,   444,     0,   443,     0,   432,   460,   461,   430,   436,
     454,   434,   459,   433,   497,     0,   644,   620,   693,     0,
     685,     0,     0,   314,   319,   325,   326,   322,   328,   324,
     323,   330,   327,   329,   321,   320,   467,     0,   263,     0,
     281,   278,   277,   189,   154,   187,   152,   197,     0,   196,
       0,   185,   179,   190,   191,   182,   148,   186,   151,   188,
     180,   181,   153,   192,   159,   176,   177,   160,   161,   162,
     163,   170,   164,   174,   178,   166,   171,   167,   172,   173,
     165,   169,   168,   175,     0,   158,   184,   150,   183,   365,
       0,   389,     0,     0,   441,   446,   451,   452,   449,   450,
     448,   453,   447,   498,   694,   686,   318,   315,   468,   264,
       0,   194,   199,   209,   207,   216,   206,   201,   210,   214,
     203,   211,   213,   208,   202,   215,   212,   204,   205,   200,
     156,     0,   366,   390,   445,   442,   198,   195,   157
};

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,     1,    25,   917,   918,  1077,  1078,    26,   279,   280,
     281,   282,    27,   316,   317,   318,   319,   320,   321,   322,
     323,   324,   325,   326,   327,   328,    28,    74,    75,    76,
      77,    78,    29,   262,   263,   264,   265,   266,   267,   268,
     269,   270,   271,   272,   273,   274,   275,    30,    64,   284,
     843,   844,   845,   285,   846,   847,   848,   849,   850,   851,
    1162,  1464,  1465,   852,   853,   854,   855,   856,   857,   858,
     859,   860,   861,   862,   863,   864,   865,   866,  1148,  1428,
    1429,  1490,  1430,  1509,    31,    52,   120,   630,   631,   632,
     121,   633,   634,   635,   636,   637,   638,   639,   640,   641,
     642,   643,   644,    32,    51,   360,   361,   362,   363,    33,
      61,   511,   792,  1294,  1295,   512,   513,   514,  1300,  1120,
    1121,   515,   516,   517,    34,    59,   476,   477,   478,   479,
     480,   481,   482,   483,   770,  1271,  1272,  1402,  1273,  1415,
     484,   485,   486,   487,   488,   489,   490,   491,   492,   493,
     494,   495,    35,    65,   543,   544,   545,   546,   547,    36,
      68,   575,   576,   577,   578,   579,   895,  1340,  1341,    37,
      69,   583,   584,   585,   586,   901,  1356,  1357,    38,    53,
     123,   665,   666,   667,   124,   668,   669,   670,   671,   672,
     673,   674,   675,   961,  1382,  1383,  1473,  1384,  1482,   676,
     677,   678,   679,   680,   681,   682,   683,   684,   685,    39,
      60,   500,   786,  1288,  1289,   501,   502,   503,   504,    40,
      54,   369,   370,   371,   372,    41,   128,   129,   130,    42,
      56,   380,   694,  1244,  1245,   381,   382,   383,   384,    43,
     188,   189,   190,   191,   192,   193,   194,   195,   196,   197,
     198,   199,   200,   201,   202,   203,   204,   205,   206,   207,
     208,   209,   210,   211,   212,   213,   214,   215,   216,   217,
     218,   219,   220,   221,   222,   223,   224,   225,   226,   227,
     228,   229,   230,   231,   232,   233,   234,   235,   236,   237,
     238,   419,  1056,  1057,   239,   417,  1033,  1034,   240,   241,
     242,   243,   244,    44,    58,   449,   450,   451,   452,   453,
     759,  1261,  1262,   454,   455,   456,   756,  1255,  1256,    45,
      98,    99,   100,   101,   102,   103,   104,   105,   106,   107,
     108,   109,   110,   111,   112,   113,   114,   115,   116,   117,
      46,   295,   296,   297,   298,   299,   300,   301,   302,   303
};

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
#define YYPACT_NINF -828
static const yytype_int16 yypact[] =
{
    -828,   867,  -828,  -202,  -250,  -245,  -828,  -828,  -828,  -828,
    -220,  -828,  -190,  -828,  -828,  -828,  -828,  -185,  -170,  -828,
    -828,  -112,   -85,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,   325,
     729,   -78,   -36,   -15,   -68,    12,   -48,   455,   -46,   -42,
     -41,   -39,   672,    87,    74,   -31,   440,   494,   -29,   -23,
     -20,   -18,   -14,   -10,    72,  -828,  -828,  -828,  -828,  -828,
      -7,    13,    33,    34,    36,    40,    44,    57,    64,    67,
      68,    71,    73,    75,    78,    79,    81,    82,   221,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,    24,  -828,
      42,  -828,  -828,    62,  -828,    19,  -828,    83,    22,  -828,
    -828,   219,  -828,    89,    90,    95,    96,   104,   105,   106,
     110,   124,   125,   128,   137,   138,   139,   142,   144,   145,
     149,   151,   159,   161,   162,   164,   165,   170,   172,   174,
     176,   178,   179,   180,   185,  -828,   186,  -828,   193,   194,
     198,   199,   201,   202,   203,   205,   206,   211,   212,   213,
     214,   215,   216,   220,   225,   228,   229,   231,    18,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,   190,   750,   158,   302,    -8,
     233,   240,   242,   243,   245,   246,   247,   249,   250,   251,
     252,   255,   321,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,   155,   257,   260,    23,
    -828,  -828,  -828,  -828,   191,  -828,    49,  -828,   261,   262,
     269,   270,   272,   276,   282,    14,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,   224,   283,   285,   286,   289,   290,
     291,   292,   294,   295,   296,   300,   189,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,     2,
      61,  -828,   280,   331,   350,   304,  -828,   368,   434,   437,
     378,   379,   445,   445,   446,   449,   388,   389,   456,   445,
     392,   393,   395,   397,   407,   347,  -828,   348,   349,   356,
      17,  -828,  -828,  -828,   744,   694,  -828,   357,   359,    32,
    -828,  -828,  -828,   457,   353,  -828,  -828,   360,   361,  -828,
    -828,   152,  -828,  -828,  -828,   413,   445,   428,   445,   495,
     474,   497,   433,   435,   439,   507,   489,   447,   513,   519,
     520,   460,   445,   461,   462,   522,   509,   464,   533,   534,
     445,   535,   515,   538,   539,   475,   476,   411,   479,   414,
     445,   445,   482,   445,   526,   486,   487,   488,  -132,  -118,
     490,   491,   445,   445,   557,   445,   496,   500,   503,   504,
     431,  -828,  -828,  -828,   442,   443,  -828,   444,   448,    39,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,   450,   452,   463,
     473,   478,   481,  -828,   492,   498,   506,   508,   511,   516,
     521,   523,   524,   527,   528,   529,   241,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,   530,  -828,   532,
    -828,    10,  -828,  -828,  -828,   453,   542,  -828,   543,   546,
     547,  -828,    27,  -828,  -828,  -828,  -828,  -828,  -828,   540,
     549,   558,   564,   583,   588,   591,   597,   752,   598,   599,
     561,   499,  -828,  -828,   603,   606,   525,  -828,   560,   537,
     550,   551,   553,     7,  -828,  -828,  -828,  -828,   570,   578,
     579,   628,   586,   601,   445,   552,  -828,  -828,   648,   622,
     666,   667,   668,   674,   679,   680,   607,   681,   684,   580,
    -828,   581,   576,  -828,   582,    41,  -828,  -828,  -828,  -828,
     589,   587,  -828,   101,  -828,  -828,  -828,   592,   600,   604,
    -828,   608,   609,   610,   615,   616,   222,   621,   623,   627,
     629,   632,   637,   639,   640,   641,   643,   645,   646,   649,
    -828,  -828,   689,   692,   650,  -828,   652,   596,   619,   625,
     651,   653,   654,   656,   658,   659,   660,   661,   664,   665,
     171,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,   655,   670,   682,   685,   687,
     688,   693,   696,   697,   698,  -828,   699,   700,   701,   703,
     704,   705,   707,   727,   731,   148,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,   712,   759,   669,  -828,
     675,  -828,   776,   783,   732,   683,  -828,   737,   739,   740,
     741,   742,   743,   745,   753,   754,   756,   757,   760,   761,
     762,   763,   764,   765,   766,   767,   773,   780,   781,   784,
     787,   788,   789,   799,   800,   802,   803,   810,   813,   778,
     817,   824,   818,   820,   821,   822,   823,   825,   826,   827,
     828,   836,   837,   839,   840,   842,   843,   844,   -11,   845,
     846,   847,   848,   849,   850,  -828,   851,   445,   747,   852,
     865,   889,   853,  -828,  -828,   930,   914,   958,   919,   920,
     855,   922,   923,   924,   925,   926,   970,   716,   971,   972,
     973,   931,   975,   870,  -828,   977,   869,   979,   874,  -828,
    -828,   981,   873,   983,   984,   719,   879,  -828,   880,   881,
     882,   883,   884,   885,   886,   887,   888,   890,   891,   892,
     893,   894,   895,   896,   897,   898,  -828,   899,   900,  -828,
     901,   902,   903,   904,   905,  -828,   906,   907,   908,   909,
     910,   911,   912,   913,   915,   916,   917,   918,   921,  -828,
     927,   928,   929,   103,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,   995,  1008,
    1009,   933,  -828,   934,   935,   936,   937,   938,   939,   940,
    -828,   941,   942,   943,   944,   945,   946,   947,   948,   949,
     950,   951,  -828,  -828,  1010,   952,  1023,   953,  -828,  -828,
    1028,   954,   956,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,   445,   445,   445,   445,   445,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,   959,   960,  -828,  -828,  1051,  1053,   445,  1054,
    1055,  1056,  1057,  1058,  1082,  1086,   445,   445,   557,   961,
    -828,  -828,  1068,   -89,  1026,  1070,  1071,  1029,  1030,  1031,
    1075,   967,  1077,  1078,  1079,  1080,  1103,  1083,  1084,  1039,
    1085,   980,  -828,   982,   985,  -828,  -828,   986,   987,   798,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -255,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -233,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,   557,   557,   557,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,     4,   988,   989,     9,   990,
     991,  -828,   992,   993,   994,   996,   997,   811,   998,   999,
    1000,  1001,  1002,  1003,  1004,  1005,  1006,  1007,  1011,  1012,
    -828,  1013,  1096,  1014,  -828,  1015,   -45,  1016,  1017,  1041,
    1018,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  1044,  1090,  1072,  1073,  1020,  1081,
    1087,  1088,  1089,  1091,  1114,  1092,  1125,  1093,  1094,  1095,
    1126,  1097,  1024,  1098,  1127,  1099,  1033,  -828,  1037,  1038,
    1040,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    1042,   585,  1043,  -828,  1045,   708,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  1046,  1047,  1048,  1049,  1050,  1052,
    1059,  1060,  1061,  1062,  1063,  1064,  1065,  -828,  1066,  1067,
    1069,  1074,  1076,  1100,  1101,  1102,  1104,  1105,  1168,  1106,
    1107,  1108,  1109,  1110,  1111,  1112,  1113,  1115,  -828,  -828,
    -828,  -828,  -828,  -828,  -230,  -828,  -828,   778,  -828,   824,
    -828,  -828,  -828,  -828,  -828,  -224,  -828,  -828,  -828,  -828,
    -828,  -217,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -212,  -828,   512,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -189,  -828,
    -828,  -828,  -828,  -828,  -182,  -828,  -828,  -828,  1169,   719,
    1116,  1117,  1118,  1119,  1120,  1173,  1121,  1122,  1123,  1124,
    1128,  1129,  1130,  1131,  1132,  1133,  1134,  1135,  1136,   861,
    1137,  1138,  1139,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -160,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -144,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -135,  -828,    -1,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,   798,  -828,  -828,  -828,     4,
    -828,     9,   512,  -828,   811,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  1096,  -828,   -45,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -123,  -828,
     374,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -109,  -828,  -828,  -828,  -828,  -828,
     585,  -828,   708,    -1,  -828,  1168,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
     374,  -828,  1173,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,   861,  -828,  -828,  -828,  -828,  -828,  -828,  -828
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -828,  -828,  -828,  -490,  -342,  -827,  -432,  -828,  -828,  1140,
    -828,  -828,  -828,  -828,  1019,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  1242,  -828,
    -828,  -828,  -828,  -828,  1143,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,   477,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -193,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -173,  -828,  -828,  -169,  -828,  -828,  -828,  -828,   706,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,   962,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,   -96,  -828,   830,  -828,  -828,  -828,
      38,  -828,  -828,  -828,  -828,  -828,  -828,   857,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,   -66,  -828,  -828,   -62,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,   801,  -828,  -828,  -828,  -828,
    -828,  -828,   768,  -828,  -828,  -828,  -828,  -828,  -125,  -828,
    -828,  -828,   769,  -828,  -828,  -828,  -828,  -126,  -828,  -828,
    -828,  -828,   686,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -128,  -828,  -828,  -124,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,   -69,  -828,   854,  -828,  -828,  -828,
    -828,  -828,  1021,  -828,  -828,  -828,  -828,  1222,  -828,  -828,
    -828,  -828,  -828,  -828,   -38,  -828,   978,  -828,  -828,  -828,
    -828,  1165,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,   107,  -828,  -828,  -828,   111,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,   957,  -828,  -828,  -828,
    -828,  -828,   -47,  -828,  -828,  -828,  -828,  -828,   -37,  -828,
    -828,  1262,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,  -828,
    -828,  -828,  1141,  -828,  -828,  -828,  -828,  -828,  -828,  -828
};

/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule which
   number is the opposite.  If zero, do what YYDEFACT says.
   If YYTABLE_NINF, syntax error.  */
#define YYTABLE_NINF -1
static const yytype_uint16 yytable[] =
{
     597,   598,   749,   571,  1074,  1075,  1076,   604,   539,  1476,
    1246,   496,  1477,   126,  1247,   287,  1253,    49,   357,   132,
     366,  1259,    50,   126,   276,   357,   133,   134,   505,  1478,
     540,   135,  1248,   366,  1479,  1394,  1249,  1292,   136,  1395,
     442,  1398,   571,   443,   698,  1399,   700,    55,  1400,   137,
     539,   358,  1401,  1403,   138,   139,   506,  1404,   358,   288,
     714,   140,   580,    47,    48,   141,   142,   143,   722,   144,
     740,   741,   540,    70,   289,   145,  1416,    57,   732,   733,
    1417,   735,    62,  1418,   742,   743,   507,  1419,   276,   444,
     746,   747,   445,   750,   146,   147,   290,    63,   291,   148,
     292,   293,   580,  1480,   820,  1469,   149,   127,   821,  1470,
     150,   151,   152,    71,   367,   153,   508,   127,   154,   155,
     294,  1471,   509,   119,    72,  1472,   748,   367,   572,   156,
    1474,   822,  1219,  1220,  1475,   157,   158,   541,   159,   160,
     161,   162,  1491,   359,   122,   823,  1492,   277,   446,   645,
     359,   646,   163,   376,   647,    66,  1510,   824,   648,   496,
    1511,   164,   825,   165,   166,   447,   167,   572,   542,   168,
     169,   497,   616,   170,   826,   649,   650,   278,   651,   541,
     368,   827,    67,   652,   171,   510,   828,   581,   829,   118,
     304,   442,   573,   368,   443,  1293,   617,   618,    73,   125,
     498,   830,   653,   172,   619,   173,   654,   655,  1254,   174,
     542,   277,   879,  1260,   175,   176,   177,   178,   179,   131,
     376,   245,    79,   180,   181,   246,   247,   581,   248,   831,
     305,   573,   182,   283,   832,    80,   286,   656,   329,   657,
     444,   278,   457,   445,   330,   331,  1481,  1250,  1251,  1252,
     332,   582,   458,   658,   333,   574,   833,   518,   334,    81,
      82,   337,   459,   499,   183,    83,   184,    84,   834,   460,
     835,   836,   185,   871,   659,   837,   788,   186,   377,   306,
     555,   338,   187,   614,   440,   620,   621,   622,   374,   536,
     623,   582,   448,   796,   574,   461,   462,   624,   688,   446,
     463,   339,   340,   505,   341,   762,   660,   897,   342,   364,
     625,   626,   343,   378,   464,   307,   447,   308,   309,   497,
     661,   465,   249,    85,    86,   344,    70,   627,   628,   365,
     662,   506,   345,    87,    88,   346,   347,   838,   335,   348,
     466,   349,   379,   350,   839,   377,   351,   352,   498,   353,
     354,   373,   629,    89,    90,   840,   841,   385,   386,   596,
     310,   507,   311,   387,   388,   842,    71,   902,   467,  1166,
      91,    92,   389,   390,   391,   312,   468,    72,   392,  1493,
     378,    93,   250,   251,   252,   253,   254,   255,   256,   257,
      94,   508,   393,   394,   469,   663,   395,   509,   912,   913,
     914,   915,   916,   470,   471,   396,   397,   398,   664,   379,
     399,   499,   400,   401,   971,  1086,  1494,   402,   695,   403,
     533,   313,  1197,  1198,  1199,  1200,  1201,   404,  1495,   405,
     406,   258,   407,   408,   472,   473,   474,   949,   409,   587,
     410,   287,   411,   448,   412,  1496,   413,   414,   415,   314,
     315,    73,  1497,   416,   418,   569,   132,  1498,   538,  1499,
     510,   420,   421,   133,   134,   259,   422,   423,   135,   424,
     425,   426,  1500,   427,   428,   136,    95,    96,    97,   429,
     430,   431,   432,   433,   434,   288,   137,   355,   435,   557,
     588,   138,   139,   436,   475,   304,   437,   438,   140,   439,
     289,   519,   141,   142,   143,  1501,   144,   783,   520,   589,
     521,   522,   145,   523,   524,   525,  1216,   526,   527,   528,
     529,  1502,   290,   530,   291,   534,   292,   293,   535,   548,
     549,   146,   147,  1405,  1406,   305,   148,   550,   551,  1503,
     552,  1504,  1505,   149,   553,   260,   294,   150,   151,   152,
     554,   558,   153,   559,   560,   154,   155,   561,   562,   563,
     564,   820,   565,   566,   567,   821,   156,  1407,   568,   590,
     591,   592,   157,   158,   593,   159,   160,   161,   162,   261,
     594,   595,   596,   599,   306,  1408,   600,   531,   822,   163,
     601,   602,  1409,   603,   605,   606,  1206,   607,   164,   608,
     165,   166,   823,   167,  1214,  1215,   168,   169,  1506,   609,
     170,  1410,   610,   611,   824,   697,   690,   612,   691,   825,
     307,   171,   308,   309,   613,   686,  1507,   687,   692,   693,
     699,   826,   701,   702,   703,   704,  1508,   705,   827,  1411,
     172,   706,   173,   828,   707,   829,   174,  1412,   708,   709,
     710,   175,   176,   177,   178,   179,   711,   712,   830,   717,
     180,   181,   713,   715,   716,   310,   719,   311,   718,   182,
     720,   721,   723,   249,   724,   725,   726,   727,   728,   729,
     312,   730,   731,  1328,   734,   736,   831,  1413,   737,   738,
     739,   832,   744,   745,   748,   645,   755,   646,   751,   798,
     647,   183,   752,   184,   648,   753,   754,  1414,   799,   185,
     757,   758,   760,   833,   186,   764,   761,   800,   790,   187,
     765,   649,   650,   801,   651,   834,   313,   835,   836,   652,
      79,   766,   837,   250,   251,   252,   253,   254,   255,   256,
     257,   767,   802,    80,   889,   616,   768,   803,   653,   769,
     804,   457,   654,   655,   314,   315,   805,   813,   814,  1329,
     771,   458,   817,   815,   816,   818,   772,    81,    82,   617,
     618,   459,   873,    83,   773,    84,   774,   619,   460,   775,
     874,   875,   258,   656,   776,   657,  1330,   876,   877,   777,
     819,   778,   779,  1331,   838,   780,   781,   782,   785,   658,
     787,   839,   867,   878,   461,   462,  1344,   881,  1332,   463,
     791,   793,   840,   841,   794,   795,   259,   880,   868,   869,
     659,   870,   842,   464,   882,   883,   884,   885,  1333,  1334,
     465,    85,    86,   886,  1335,  1336,  1337,  1338,   887,   888,
     890,    87,    88,   891,   894,   892,   893,  1339,   932,   466,
     896,   933,   660,  1104,   899,   900,  1119,   904,   620,   621,
     622,    89,    90,   623,   936,   905,   661,     2,     3,   906,
     624,   973,     4,   907,   908,   909,   662,   467,    91,    92,
     910,   911,  1345,   625,   626,   468,   919,   937,   920,    93,
       5,     6,   921,   938,   922,     7,   260,   923,    94,     8,
     627,   628,   924,   469,   925,   926,   927,     9,   928,  1346,
     929,   930,   470,   471,   931,   934,  1347,   935,   974,   939,
     951,   940,   941,    10,   942,   629,   943,   944,   945,   946,
     261,  1348,   947,   948,   975,   977,    11,    12,   952,    13,
     976,   663,   978,   472,   473,   474,    14,  1270,   980,  1087,
     953,  1349,  1350,   954,   664,   955,   956,  1351,  1352,  1353,
    1354,   957,  1243,    15,   958,   959,   960,   962,   963,   964,
    1355,   965,   966,   967,    16,   968,    17,   806,   807,   808,
     809,   810,   811,   812,    95,    96,    97,  1013,  1014,  1015,
    1016,  1017,    18,  1018,  1019,   969,  1020,  1021,  1022,   970,
     979,  1023,   981,   475,   982,   983,   984,   985,   986,    19,
     987,  1024,  1025,  1026,  1027,  1028,  1029,  1030,   988,   989,
    1031,   990,   991,  1032,  1089,   992,   993,   994,   995,   996,
     997,   998,   999,  1036,  1037,  1038,  1039,  1040,  1000,  1041,
    1042,    20,  1043,  1044,  1045,  1001,  1002,  1046,  1090,  1003,
      21,    22,  1004,  1005,  1006,    23,    24,  1047,  1048,  1049,
    1050,  1051,  1052,  1053,  1007,  1008,  1054,  1009,  1010,  1055,
    1444,  1445,  1446,  1447,  1448,  1011,  1449,  1450,  1012,  1451,
    1452,  1453,  1035,  1058,  1454,  1059,  1060,  1061,  1062,  1092,
    1063,  1064,  1065,  1066,  1455,  1456,  1457,  1458,  1459,  1460,
    1461,  1067,  1068,  1462,  1069,  1070,  1463,  1071,  1072,  1073,
    1079,  1080,  1081,  1082,  1083,  1084,  1093,  1094,  1091,  1085,
    1088,  1095,  1096,  1097,  1098,  1099,  1100,  1101,  1102,  1103,
    1105,  1106,  1107,  1108,  1109,  1110,  1111,  1112,  1113,  1114,
    1115,  1116,  1117,  1118,  1122,  1123,  1124,  1125,  1126,  1127,
    1128,  1129,  1130,  1131,  1168,  1132,  1133,  1134,  1135,  1136,
    1137,  1138,  1139,  1140,  1141,  1142,  1143,  1169,  1170,  1190,
    1144,  1145,  1146,  1147,  1149,  1150,  1151,  1152,  1153,  1154,
    1155,  1156,  1192,  1157,  1158,  1159,  1160,  1194,  1204,  1161,
    1205,  1207,  1208,  1209,  1210,  1163,  1164,  1165,  1171,  1172,
    1173,  1174,  1175,  1176,  1177,  1178,  1179,  1180,  1181,  1182,
    1183,  1184,  1185,  1186,  1187,  1188,  1189,  1211,  1193,  1212,
    1191,  1196,  1195,  1213,  1202,  1203,  1217,  1218,  1221,  1222,
    1223,  1224,  1225,  1226,  1227,  1228,  1229,  1230,  1231,  1232,
    1233,  1236,  1234,  1235,  1237,  1238,  1301,  1239,  1298,  1302,
    1240,  1241,  1242,  1257,  1258,  1263,  1264,  1265,  1266,  1267,
    1287,  1268,  1269,  1274,  1275,  1276,  1277,  1278,  1279,  1280,
    1281,  1282,  1283,  1311,  1303,  1304,  1284,  1285,  1286,  1290,
    1291,  1296,  1297,  1306,  1313,  1317,  1321,  1299,  1305,  1307,
    1308,  1309,  1319,  1310,  1312,  1314,  1315,  1316,  1323,  1318,
    1320,  1322,  1324,  1325,  1381,  1326,  1420,  1327,  1342,  1427,
    1343,  1358,  1359,  1360,  1361,  1362,   336,  1363,  1518,  1517,
    1167,  1516,   615,  1489,  1364,  1365,  1366,  1367,  1368,  1369,
    1370,  1371,  1372,   784,  1373,   570,   950,  1421,  1487,  1374,
    1486,  1375,   797,   898,   872,  1512,  1513,  1515,  1488,  1514,
     375,   972,   903,   441,  1485,   789,  1397,  1483,  1396,   696,
     356,     0,  1484,     0,     0,  1376,  1377,  1378,     0,  1379,
    1380,  1385,  1386,  1387,  1388,  1389,  1390,  1391,  1392,     0,
    1393,  1422,  1423,  1424,  1425,  1426,  1431,  1432,  1433,  1434,
     689,     0,     0,  1435,  1436,  1437,  1438,  1439,  1440,  1441,
    1442,  1443,  1466,  1467,  1468,   532,   763,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   537,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,   556
};

static const yytype_int16 yycheck[] =
{
     342,   343,   434,     1,    15,    16,    17,   349,     1,    10,
     265,     1,    13,     1,   269,     1,    12,   267,     1,     1,
       1,    12,   267,     1,     1,     1,     8,     9,     1,    30,
      23,    13,   265,     1,    35,   265,   269,    82,    20,   269,
       1,   265,     1,     4,   386,   269,   388,   267,   265,    31,
       1,    34,   269,   265,    36,    37,    29,   269,    34,    45,
     402,    43,     1,   265,   266,    47,    48,    49,   410,    51,
     202,   203,    23,     1,    60,    57,   265,   267,   420,   421,
     269,   423,   267,   265,   202,   203,    59,   269,     1,    50,
     432,   433,    53,   435,    76,    77,    82,   267,    84,    81,
      86,    87,     1,   104,     1,   265,    88,    95,     5,   269,
      92,    93,    94,    41,    95,    97,    89,    95,   100,   101,
     106,   265,    95,   159,    52,   269,   137,    95,   126,   111,
     265,    28,   221,   222,   269,   117,   118,   130,   120,   121,
     122,   123,   265,   126,   159,    42,   269,   124,   109,     1,
     126,     3,   134,     1,     6,   267,   265,    54,    10,     1,
     269,   143,    59,   145,   146,   126,   148,   126,   161,   151,
     152,   161,     1,   155,    71,    27,    28,   154,    30,   130,
     161,    78,   267,    35,   166,   158,    83,   126,    85,   267,
       1,     1,   190,   161,     4,   240,    25,    26,   126,   267,
     190,    98,    54,   185,    33,   187,    58,    59,   204,   191,
     161,   124,   554,   204,   196,   197,   198,   199,   200,   267,
       1,   267,     1,   205,   206,   267,   267,   126,   267,   126,
      41,   190,   214,   159,   131,    14,   267,    89,   267,    91,
      50,   154,     1,    53,   267,   265,   247,  1074,  1075,  1076,
     268,   190,    11,   105,   268,   253,   153,   265,   268,    38,
      39,   268,    21,   253,   246,    44,   248,    46,   165,    28,
     167,   168,   254,   266,   126,   172,   266,   259,   126,    90,
     266,   268,   264,   266,   266,   114,   115,   116,   266,   266,
     119,   190,   253,   266,   253,    54,    55,   126,   266,   109,
      59,   268,   268,     1,   268,   266,   158,   266,   268,   267,
     139,   140,   268,   161,    73,   126,   126,   128,   129,   161,
     172,    80,     1,   102,   103,   268,     1,   156,   157,   267,
     182,    29,   268,   112,   113,   268,   268,   234,   266,   268,
      99,   268,   190,   268,   241,   126,   268,   268,   190,   268,
     268,   268,   181,   132,   133,   252,   253,   268,   268,   137,
     171,    59,   173,   268,   268,   262,    41,   266,   127,   266,
     149,   150,   268,   268,   268,   186,   135,    52,   268,     5,
     161,   160,    61,    62,    63,    64,    65,    66,    67,    68,
     169,    89,   268,   268,   153,   247,   268,    95,   176,   177,
     178,   179,   180,   162,   163,   268,   268,   268,   260,   190,
     268,   253,   268,   268,   266,   757,    42,   268,   266,   268,
     265,   232,   912,   913,   914,   915,   916,   268,    54,   268,
     268,   110,   268,   268,   193,   194,   195,   266,   268,   159,
     268,     1,   268,   253,   268,    71,   268,   268,   268,   260,
     261,   126,    78,   268,   268,   266,     1,    83,   267,    85,
     158,   268,   268,     8,     9,   144,   268,   268,    13,   268,
     268,   268,    98,   268,   268,    20,   255,   256,   257,   268,
     268,   268,   268,   268,   268,    45,    31,   266,   268,   265,
     159,    36,    37,   268,   253,     1,   268,   268,    43,   268,
      60,   268,    47,    48,    49,   131,    51,   266,   268,   159,
     268,   268,    57,   268,   268,   268,   948,   268,   268,   268,
     268,   147,    82,   268,    84,   268,    86,    87,   268,   268,
     268,    76,    77,    21,    22,    41,    81,   268,   268,   165,
     268,   167,   168,    88,   268,   224,   106,    92,    93,    94,
     268,   268,    97,   268,   268,   100,   101,   268,   268,   268,
     268,     1,   268,   268,   268,     5,   111,    55,   268,   265,
     202,   137,   117,   118,   137,   120,   121,   122,   123,   258,
     202,   202,   137,   137,    90,    73,   137,   266,    28,   134,
     202,   202,    80,   137,   202,   202,   938,   202,   143,   202,
     145,   146,    42,   148,   946,   947,   151,   152,   234,   202,
     155,    99,   265,   265,    54,   202,   159,   268,   265,    59,
     126,   166,   128,   129,   268,   268,   252,   268,   268,   268,
     202,    71,   137,   159,   137,   202,   262,   202,    78,   127,
     185,   202,   187,    83,   137,    85,   191,   135,   159,   202,
     137,   196,   197,   198,   199,   200,   137,   137,    98,   137,
     205,   206,   202,   202,   202,   171,   202,   173,   159,   214,
     137,   137,   137,     1,   159,   137,   137,   202,   202,   268,
     186,   202,   268,    98,   202,   159,   126,   175,   202,   202,
     202,   131,   202,   202,   137,     1,   265,     3,   202,   159,
       6,   246,   202,   248,    10,   202,   202,   195,   159,   254,
     268,   268,   268,   153,   259,   265,   268,   159,   265,   264,
     268,    27,    28,   159,    30,   165,   232,   167,   168,    35,
       1,   268,   172,    61,    62,    63,    64,    65,    66,    67,
      68,   268,   159,    14,   137,     1,   268,   159,    54,   268,
     159,     1,    58,    59,   260,   261,   159,   159,   159,   174,
     268,    11,   159,   202,   265,   159,   268,    38,    39,    25,
      26,    21,   202,    44,   268,    46,   268,    33,    28,   268,
     202,   202,   110,    89,   268,    91,   201,   159,   202,   268,
     265,   268,   268,   208,   234,   268,   268,   268,   268,   105,
     268,   241,   265,   202,    54,    55,    98,   159,   223,    59,
     268,   268,   252,   253,   268,   268,   144,   265,   268,   268,
     126,   268,   262,    73,   202,   159,   159,   159,   243,   244,
      80,   102,   103,   159,   249,   250,   251,   252,   159,   159,
     159,   112,   113,   159,   268,   265,   265,   262,   159,    99,
     268,   159,   158,   137,   265,   268,   137,   265,   114,   115,
     116,   132,   133,   119,   268,   265,   172,     0,     1,   265,
     126,   159,     5,   265,   265,   265,   182,   127,   149,   150,
     265,   265,   174,   139,   140,   135,   265,   268,   265,   160,
      23,    24,   265,   268,   265,    28,   224,   265,   169,    32,
     156,   157,   265,   153,   265,   265,   265,    40,   265,   201,
     265,   265,   162,   163,   265,   265,   208,   265,   159,   268,
     265,   268,   268,    56,   268,   181,   268,   268,   268,   268,
     258,   223,   268,   268,   265,   159,    69,    70,   268,    72,
     265,   247,   159,   193,   194,   195,    79,   136,   265,   202,
     268,   243,   244,   268,   260,   268,   268,   249,   250,   251,
     252,   268,   164,    96,   268,   268,   268,   268,   268,   268,
     262,   268,   268,   268,   107,   268,   109,   225,   226,   227,
     228,   229,   230,   231,   255,   256,   257,   209,   210,   211,
     212,   213,   125,   215,   216,   268,   218,   219,   220,   268,
     268,   223,   265,   253,   265,   265,   265,   265,   265,   142,
     265,   233,   234,   235,   236,   237,   238,   239,   265,   265,
     242,   265,   265,   245,   159,   265,   265,   265,   265,   265,
     265,   265,   265,   209,   210,   211,   212,   213,   265,   215,
     216,   174,   218,   219,   220,   265,   265,   223,   159,   265,
     183,   184,   265,   265,   265,   188,   189,   233,   234,   235,
     236,   237,   238,   239,   265,   265,   242,   265,   265,   245,
     209,   210,   211,   212,   213,   265,   215,   216,   265,   218,
     219,   220,   265,   265,   223,   265,   265,   265,   265,   159,
     265,   265,   265,   265,   233,   234,   235,   236,   237,   238,
     239,   265,   265,   242,   265,   265,   245,   265,   265,   265,
     265,   265,   265,   265,   265,   265,   202,   159,   265,   268,
     268,   202,   202,   268,   202,   202,   202,   202,   202,   159,
     159,   159,   159,   202,   159,   265,   159,   268,   159,   265,
     159,   268,   159,   159,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   159,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   265,   265,   265,   159,   159,   159,
     268,   268,   268,   268,   268,   268,   268,   268,   268,   268,
     268,   268,   159,   268,   268,   268,   268,   159,   137,   268,
     137,   137,   137,   137,   137,   268,   268,   268,   265,   265,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   265,   265,   265,   159,   265,   137,
     268,   265,   268,   137,   265,   265,   265,   159,   202,   159,
     159,   202,   202,   202,   159,   268,   159,   159,   159,   159,
     137,   202,   159,   159,   159,   265,   202,   265,   207,   159,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     164,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   159,   202,   202,   265,   265,   265,   265,
     265,   265,   265,   202,   159,   159,   159,   269,   268,   202,
     202,   202,   268,   202,   202,   202,   202,   202,   265,   202,
     202,   202,   265,   265,   136,   265,   137,   265,   265,   136,
     265,   265,   265,   265,   265,   265,    74,   265,  1511,  1492,
     843,  1490,   360,  1419,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   476,   265,   316,   630,  1299,  1404,   265,
    1402,   265,   512,   575,   543,  1470,  1472,  1475,  1417,  1473,
     128,   665,   583,   188,  1401,   501,  1249,  1395,  1247,   381,
      98,    -1,  1399,    -1,    -1,   265,   265,   265,    -1,   265,
     265,   265,   265,   265,   265,   265,   265,   265,   265,    -1,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     369,    -1,    -1,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   265,   262,   449,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   279,
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    -1,    -1,    -1,   295
};

/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
   symbol of state STATE-NUM.  */
static const yytype_uint16 yystos[] =
{
       0,   271,     0,     1,     5,    23,    24,    28,    32,    40,
      56,    69,    70,    72,    79,    96,   107,   109,   125,   142,
     174,   183,   184,   188,   189,   272,   277,   282,   296,   302,
     317,   354,   373,   379,   394,   422,   429,   439,   448,   479,
     489,   495,   499,   509,   573,   589,   610,   265,   266,   267,
     267,   374,   355,   449,   490,   267,   500,   267,   574,   395,
     480,   380,   267,   267,   318,   423,   267,   267,   430,   440,
       1,    41,    52,   126,   297,   298,   299,   300,   301,     1,
      14,    38,    39,    44,    46,   102,   103,   112,   113,   132,
     133,   149,   150,   160,   169,   255,   256,   257,   590,   591,
     592,   593,   594,   595,   596,   597,   598,   599,   600,   601,
     602,   603,   604,   605,   606,   607,   608,   609,   267,   159,
     356,   360,   159,   450,   454,   267,     1,    95,   496,   497,
     498,   267,     1,     8,     9,    13,    20,    31,    36,    37,
      43,    47,    48,    49,    51,    57,    76,    77,    81,    88,
      92,    93,    94,    97,   100,   101,   111,   117,   118,   120,
     121,   122,   123,   134,   143,   145,   146,   148,   151,   152,
     155,   166,   185,   187,   191,   196,   197,   198,   199,   200,
     205,   206,   214,   246,   248,   254,   259,   264,   510,   511,
     512,   513,   514,   515,   516,   517,   518,   519,   520,   521,
     522,   523,   524,   525,   526,   527,   528,   529,   530,   531,
     532,   533,   534,   535,   536,   537,   538,   539,   540,   541,
     542,   543,   544,   545,   546,   547,   548,   549,   550,   551,
     552,   553,   554,   555,   556,   557,   558,   559,   560,   564,
     568,   569,   570,   571,   572,   267,   267,   267,   267,     1,
      61,    62,    63,    64,    65,    66,    67,    68,   110,   144,
     224,   258,   303,   304,   305,   306,   307,   308,   309,   310,
     311,   312,   313,   314,   315,   316,     1,   124,   154,   278,
     279,   280,   281,   159,   319,   323,   267,     1,    45,    60,
      82,    84,    86,    87,   106,   611,   612,   613,   614,   615,
     616,   617,   618,   619,     1,    41,    90,   126,   128,   129,
     171,   173,   186,   232,   260,   261,   283,   284,   285,   286,
     287,   288,   289,   290,   291,   292,   293,   294,   295,   267,
     267,   265,   268,   268,   268,   266,   298,   268,   268,   268,
     268,   268,   268,   268,   268,   268,   268,   268,   268,   268,
     268,   268,   268,   268,   268,   266,   591,     1,    34,   126,
     375,   376,   377,   378,   267,   267,     1,    95,   161,   491,
     492,   493,   494,   268,   266,   497,     1,   126,   161,   190,
     501,   505,   506,   507,   508,   268,   268,   268,   268,   268,
     268,   268,   268,   268,   268,   268,   268,   268,   268,   268,
     268,   268,   268,   268,   268,   268,   268,   268,   268,   268,
     268,   268,   268,   268,   268,   268,   268,   565,   268,   561,
     268,   268,   268,   268,   268,   268,   268,   268,   268,   268,
     268,   268,   268,   268,   268,   268,   268,   268,   268,   268,
     266,   511,     1,     4,    50,    53,   109,   126,   253,   575,
     576,   577,   578,   579,   583,   584,   585,     1,    11,    21,
      28,    54,    55,    59,    73,    80,    99,   127,   135,   153,
     162,   163,   193,   194,   195,   253,   396,   397,   398,   399,
     400,   401,   402,   403,   410,   411,   412,   413,   414,   415,
     416,   417,   418,   419,   420,   421,     1,   161,   190,   253,
     481,   485,   486,   487,   488,     1,    29,    59,    89,    95,
     158,   381,   385,   386,   387,   391,   392,   393,   265,   268,
     268,   268,   268,   268,   268,   268,   268,   268,   268,   268,
     268,   266,   304,   265,   268,   268,   266,   279,   267,     1,
      23,   130,   161,   424,   425,   426,   427,   428,   268,   268,
     268,   268,   268,   268,   268,   266,   612,   265,   268,   268,
     268,   268,   268,   268,   268,   268,   268,   268,   268,   266,
     284,     1,   126,   190,   253,   431,   432,   433,   434,   435,
       1,   126,   190,   441,   442,   443,   444,   159,   159,   159,
     265,   202,   137,   137,   202,   202,   137,   274,   274,   137,
     137,   202,   202,   137,   274,   202,   202,   202,   202,   202,
     265,   265,   268,   268,   266,   376,     1,    25,    26,    33,
     114,   115,   116,   119,   126,   139,   140,   156,   157,   181,
     357,   358,   359,   361,   362,   363,   364,   365,   366,   367,
     368,   369,   370,   371,   372,     1,     3,     6,    10,    27,
      28,    30,    35,    54,    58,    59,    89,    91,   105,   126,
     158,   172,   182,   247,   260,   451,   452,   453,   455,   456,
     457,   458,   459,   460,   461,   462,   469,   470,   471,   472,
     473,   474,   475,   476,   477,   478,   268,   268,   266,   492,
     159,   265,   268,   268,   502,   266,   506,   202,   274,   202,
     274,   137,   159,   137,   202,   202,   202,   137,   159,   202,
     137,   137,   137,   202,   274,   202,   202,   137,   159,   202,
     137,   137,   274,   137,   159,   137,   137,   202,   202,   268,
     202,   268,   274,   274,   202,   274,   159,   202,   202,   202,
     202,   203,   202,   203,   202,   202,   274,   274,   137,   276,
     274,   202,   202,   202,   202,   265,   586,   268,   268,   580,
     268,   268,   266,   576,   265,   268,   268,   268,   268,   268,
     404,   268,   268,   268,   268,   268,   268,   268,   268,   268,
     268,   268,   268,   266,   397,   268,   482,   268,   266,   486,
     265,   268,   382,   268,   268,   268,   266,   386,   159,   159,
     159,   159,   159,   159,   159,   159,   225,   226,   227,   228,
     229,   230,   231,   159,   159,   202,   265,   159,   159,   265,
       1,     5,    28,    42,    54,    59,    71,    78,    83,    85,
      98,   126,   131,   153,   165,   167,   168,   172,   234,   241,
     252,   253,   262,   320,   321,   322,   324,   325,   326,   327,
     328,   329,   333,   334,   335,   336,   337,   338,   339,   340,
     341,   342,   343,   344,   345,   346,   347,   265,   268,   268,
     268,   266,   425,   202,   202,   202,   159,   202,   202,   274,
     265,   159,   202,   159,   159,   159,   159,   159,   159,   137,
     159,   159,   265,   265,   268,   436,   268,   266,   432,   265,
     268,   445,   266,   442,   265,   265,   265,   265,   265,   265,
     265,   265,   176,   177,   178,   179,   180,   273,   274,   265,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   159,   159,   265,   265,   268,   268,   268,   268,
     268,   268,   268,   268,   268,   268,   268,   268,   268,   266,
     358,   265,   268,   268,   268,   268,   268,   268,   268,   268,
     268,   463,   268,   268,   268,   268,   268,   268,   268,   268,
     268,   266,   452,   159,   159,   265,   265,   159,   159,   268,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   209,   210,   211,   212,   213,   215,   216,
     218,   219,   220,   223,   233,   234,   235,   236,   237,   238,
     239,   242,   245,   566,   567,   265,   209,   210,   211,   212,
     213,   215,   216,   218,   219,   220,   223,   233,   234,   235,
     236,   237,   238,   239,   242,   245,   562,   563,   265,   265,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,    15,    16,    17,   275,   276,   265,
     265,   265,   265,   265,   265,   268,   274,   202,   268,   159,
     159,   265,   159,   202,   159,   202,   202,   268,   202,   202,
     202,   202,   202,   159,   137,   159,   159,   159,   202,   159,
     265,   159,   268,   159,   265,   159,   268,   159,   159,   137,
     389,   390,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   268,   268,   268,   268,   348,   268,
     268,   268,   268,   268,   268,   268,   268,   268,   268,   268,
     268,   268,   330,   268,   268,   268,   266,   321,   159,   159,
     159,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     159,   268,   159,   265,   159,   268,   265,   273,   273,   273,
     273,   273,   265,   265,   137,   137,   274,   137,   137,   137,
     137,   159,   137,   137,   274,   274,   276,   265,   159,   221,
     222,   202,   159,   159,   202,   202,   202,   159,   268,   159,
     159,   159,   159,   137,   159,   159,   202,   159,   265,   265,
     265,   265,   265,   164,   503,   504,   265,   269,   265,   269,
     275,   275,   275,    12,   204,   587,   588,   265,   265,    12,
     204,   581,   582,   265,   265,   265,   265,   265,   265,   265,
     136,   405,   406,   408,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   265,   265,   265,   164,   483,   484,
     265,   265,    82,   240,   383,   384,   265,   265,   207,   269,
     388,   202,   159,   202,   202,   268,   202,   202,   202,   202,
     202,   159,   202,   159,   202,   202,   202,   159,   202,   268,
     202,   159,   202,   265,   265,   265,   265,   265,    98,   174,
     201,   208,   223,   243,   244,   249,   250,   251,   252,   262,
     437,   438,   265,   265,    98,   174,   201,   208,   223,   243,
     244,   249,   250,   251,   252,   262,   446,   447,   265,   265,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   136,   464,   465,   467,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   265,   269,   567,   563,   265,   269,
     265,   269,   407,   265,   269,    21,    22,    55,    73,    80,
      99,   127,   135,   175,   195,   409,   265,   269,   265,   269,
     137,   390,   265,   265,   265,   265,   265,   136,   349,   350,
     352,   265,   265,   265,   265,   265,   265,   265,   265,   265,
     265,   265,   265,   265,   209,   210,   211,   212,   213,   215,
     216,   218,   219,   220,   223,   233,   234,   235,   236,   237,
     238,   239,   242,   245,   331,   332,   265,   265,   265,   265,
     269,   265,   269,   466,   265,   269,    10,    13,    30,    35,
     104,   247,   468,   504,   588,   582,   409,   406,   484,   384,
     351,   265,   269,     5,    42,    54,    71,    78,    83,    85,
      98,   131,   147,   165,   167,   168,   234,   252,   262,   353,
     265,   269,   438,   447,   468,   465,   353,   350,   332
};

#define yyerrok		(yyerrstatus = 0)
#define yyclearin	(yychar = YYEMPTY)
#define YYEMPTY		(-2)
#define YYEOF		0

#define YYACCEPT	goto yyacceptlab
#define YYABORT		goto yyabortlab
#define YYERROR		goto yyerrorlab


/* Like YYERROR except do call yyerror.  This remains here temporarily
   to ease the transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */

#define YYFAIL		goto yyerrlab

#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)					\
do								\
  if (yychar == YYEMPTY && yylen == 1)				\
    {								\
      yychar = (Token);						\
      yylval = (Value);						\
      yytoken = YYTRANSLATE (yychar);				\
      YYPOPSTACK (1);						\
      goto yybackup;						\
    }								\
  else								\
    {								\
      yyerror (YY_("syntax error: cannot back up")); \
      YYERROR;							\
    }								\
while (YYID (0))


#define YYTERROR	1
#define YYERRCODE	256


/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
   If N is 0, then set CURRENT to the empty location which ends
   the previous symbol: RHS[0] (always defined).  */

#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N)				\
    do									\
      if (YYID (N))                                                    \
	{								\
	  (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;	\
	  (Current).first_column = YYRHSLOC (Rhs, 1).first_column;	\
	  (Current).last_line    = YYRHSLOC (Rhs, N).last_line;		\
	  (Current).last_column  = YYRHSLOC (Rhs, N).last_column;	\
	}								\
      else								\
	{								\
	  (Current).first_line   = (Current).last_line   =		\
	    YYRHSLOC (Rhs, 0).last_line;				\
	  (Current).first_column = (Current).last_column =		\
	    YYRHSLOC (Rhs, 0).last_column;				\
	}								\
    while (YYID (0))
#endif


/* YY_LOCATION_PRINT -- Print the location on the stream.
   This macro was not mandated originally: define only if we know
   we won't break user code: when these are the locations we know.  */

#ifndef YY_LOCATION_PRINT
# if YYLTYPE_IS_TRIVIAL
#  define YY_LOCATION_PRINT(File, Loc)			\
     fprintf (File, "%d.%d-%d.%d",			\
	      (Loc).first_line, (Loc).first_column,	\
	      (Loc).last_line,  (Loc).last_column)
# else
#  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
# endif
#endif


/* YYLEX -- calling `yylex' with the right arguments.  */

#ifdef YYLEX_PARAM
# define YYLEX yylex (YYLEX_PARAM)
#else
# define YYLEX yylex ()
#endif

/* Enable debugging if requested.  */
#if YYDEBUG

# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)			\
do {						\
  if (yydebug)					\
    YYFPRINTF Args;				\
} while (YYID (0))

# define YY_SYMBOL_PRINT(Title, Type, Value, Location)			  \
do {									  \
  if (yydebug)								  \
    {									  \
      YYFPRINTF (stderr, "%s ", Title);					  \
      yy_symbol_print (stderr,						  \
		  Type, Value); \
      YYFPRINTF (stderr, "\n");						  \
    }									  \
} while (YYID (0))


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
#else
static void
yy_symbol_value_print (yyoutput, yytype, yyvaluep)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
#endif
{
  if (!yyvaluep)
    return;
# ifdef YYPRINT
  if (yytype < YYNTOKENS)
    YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# else
  YYUSE (yyoutput);
# endif
  switch (yytype)
    {
      default:
	break;
    }
}


/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
`--------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
#else
static void
yy_symbol_print (yyoutput, yytype, yyvaluep)
    FILE *yyoutput;
    int yytype;
    YYSTYPE const * const yyvaluep;
#endif
{
  if (yytype < YYNTOKENS)
    YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  else
    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);

  yy_symbol_value_print (yyoutput, yytype, yyvaluep);
  YYFPRINTF (yyoutput, ")");
}

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included).                                                   |
`------------------------------------------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
#else
static void
yy_stack_print (bottom, top)
    yytype_int16 *bottom;
    yytype_int16 *top;
#endif
{
  YYFPRINTF (stderr, "Stack now");
  for (; bottom <= top; ++bottom)
    YYFPRINTF (stderr, " %d", *bottom);
  YYFPRINTF (stderr, "\n");
}

# define YY_STACK_PRINT(Bottom, Top)				\
do {								\
  if (yydebug)							\
    yy_stack_print ((Bottom), (Top));				\
} while (YYID (0))


/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/

#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
#else
static void
yy_reduce_print (yyvsp, yyrule)
    YYSTYPE *yyvsp;
    int yyrule;
#endif
{
  int yynrhs = yyr2[yyrule];
  int yyi;
  unsigned long int yylno = yyrline[yyrule];
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
	     yyrule - 1, yylno);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      fprintf (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
		       &(yyvsp[(yyi + 1) - (yynrhs)])
		       		       );
      fprintf (stderr, "\n");
    }
}

# define YY_REDUCE_PRINT(Rule)		\
do {					\
  if (yydebug)				\
    yy_reduce_print (yyvsp, Rule); \
} while (YYID (0))

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */


/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef	YYINITDEPTH
# define YYINITDEPTH 200
#endif

/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).

   Do not make this value too large; the results are undefined if
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif



#if YYERROR_VERBOSE

# ifndef yystrlen
#  if defined __GLIBC__ && defined _STRING_H
#   define yystrlen strlen
#  else
/* Return the length of YYSTR.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
yystrlen (const char *yystr)
#else
static YYSIZE_T
yystrlen (yystr)
    const char *yystr;
#endif
{
  YYSIZE_T yylen;
  for (yylen = 0; yystr[yylen]; yylen++)
    continue;
  return yylen;
}
#  endif
# endif

# ifndef yystpcpy
#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
#   define yystpcpy stpcpy
#  else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static char *
yystpcpy (char *yydest, const char *yysrc)
#else
static char *
yystpcpy (yydest, yysrc)
    char *yydest;
    const char *yysrc;
#endif
{
  char *yyd = yydest;
  const char *yys = yysrc;

  while ((*yyd++ = *yys++) != '\0')
    continue;

  return yyd - 1;
}
#  endif
# endif

# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
   quotes and backslashes, so that it's suitable for yyerror.  The
   heuristic is that double-quoting is unnecessary unless the string
   contains an apostrophe, a comma, or backslash (other than
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
   null, do not copy; instead, return the length of what the result
   would have been.  */
static YYSIZE_T
yytnamerr (char *yyres, const char *yystr)
{
  if (*yystr == '"')
    {
      YYSIZE_T yyn = 0;
      char const *yyp = yystr;

      for (;;)
	switch (*++yyp)
	  {
	  case '\'':
	  case ',':
	    goto do_not_strip_quotes;

	  case '\\':
	    if (*++yyp != '\\')
	      goto do_not_strip_quotes;
	    /* Fall through.  */
	  default:
	    if (yyres)
	      yyres[yyn] = *yyp;
	    yyn++;
	    break;

	  case '"':
	    if (yyres)
	      yyres[yyn] = '\0';
	    return yyn;
	  }
    do_not_strip_quotes: ;
    }

  if (! yyres)
    return yystrlen (yystr);

  return yystpcpy (yyres, yystr) - yyres;
}
# endif

/* Copy into YYRESULT an error message about the unexpected token
   YYCHAR while in state YYSTATE.  Return the number of bytes copied,
   including the terminating null byte.  If YYRESULT is null, do not
   copy anything; just return the number of bytes that would be
   copied.  As a special case, return 0 if an ordinary "syntax error"
   message will do.  Return YYSIZE_MAXIMUM if overflow occurs during
   size calculation.  */
static YYSIZE_T
yysyntax_error (char *yyresult, int yystate, int yychar)
{
  int yyn = yypact[yystate];

  if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
    return 0;
  else
    {
      int yytype = YYTRANSLATE (yychar);
      YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
      YYSIZE_T yysize = yysize0;
      YYSIZE_T yysize1;
      int yysize_overflow = 0;
      enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
      char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
      int yyx;

# if 0
      /* This is so xgettext sees the translatable formats that are
	 constructed on the fly.  */
      YY_("syntax error, unexpected %s");
      YY_("syntax error, unexpected %s, expecting %s");
      YY_("syntax error, unexpected %s, expecting %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s");
      YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
# endif
      char *yyfmt;
      char const *yyf;
      static char const yyunexpected[] = "syntax error, unexpected %s";
      static char const yyexpecting[] = ", expecting %s";
      static char const yyor[] = " or %s";
      char yyformat[sizeof yyunexpected
		    + sizeof yyexpecting - 1
		    + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
		       * (sizeof yyor - 1))];
      char const *yyprefix = yyexpecting;

      /* Start YYX at -YYN if negative to avoid negative indexes in
	 YYCHECK.  */
      int yyxbegin = yyn < 0 ? -yyn : 0;

      /* Stay within bounds of both yycheck and yytname.  */
      int yychecklim = YYLAST - yyn + 1;
      int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
      int yycount = 1;

      yyarg[0] = yytname[yytype];
      yyfmt = yystpcpy (yyformat, yyunexpected);

      for (yyx = yyxbegin; yyx < yyxend; ++yyx)
	if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
	  {
	    if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
	      {
		yycount = 1;
		yysize = yysize0;
		yyformat[sizeof yyunexpected - 1] = '\0';
		break;
	      }
	    yyarg[yycount++] = yytname[yyx];
	    yysize1 = yysize + yytnamerr (0, yytname[yyx]);
	    yysize_overflow |= (yysize1 < yysize);
	    yysize = yysize1;
	    yyfmt = yystpcpy (yyfmt, yyprefix);
	    yyprefix = yyor;
	  }

      yyf = YY_(yyformat);
      yysize1 = yysize + yystrlen (yyf);
      yysize_overflow |= (yysize1 < yysize);
      yysize = yysize1;

      if (yysize_overflow)
	return YYSIZE_MAXIMUM;

      if (yyresult)
	{
	  /* Avoid sprintf, as that infringes on the user's name space.
	     Don't have undefined behavior even if the translation
	     produced a string with the wrong number of "%s"s.  */
	  char *yyp = yyresult;
	  int yyi = 0;
	  while ((*yyp = *yyf) != '\0')
	    {
	      if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
		{
		  yyp += yytnamerr (yyp, yyarg[yyi++]);
		  yyf += 2;
		}
	      else
		{
		  yyp++;
		  yyf++;
		}
	    }
	}
      return yysize;
    }
}
#endif /* YYERROR_VERBOSE */


/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
#else
static void
yydestruct (yymsg, yytype, yyvaluep)
    const char *yymsg;
    int yytype;
    YYSTYPE *yyvaluep;
#endif
{
  YYUSE (yyvaluep);

  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);

  switch (yytype)
    {

      default:
	break;
    }
}


/* Prevent warnings from -Wmissing-prototypes.  */

#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
#else
int yyparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int yyparse (void);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */



/* The look-ahead symbol.  */
int yychar;

/* The semantic value of the look-ahead symbol.  */
YYSTYPE yylval;

/* Number of syntax errors so far.  */
int yynerrs;



/*----------.
| yyparse.  |
`----------*/

#ifdef YYPARSE_PARAM
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (void *YYPARSE_PARAM)
#else
int
yyparse (YYPARSE_PARAM)
    void *YYPARSE_PARAM;
#endif
#else /* ! YYPARSE_PARAM */
#if (defined __STDC__ || defined __C99__FUNC__ \
     || defined __cplusplus || defined _MSC_VER)
int
yyparse (void)
#else
int
yyparse ()

#endif
#endif
{
  
  int yystate;
  int yyn;
  int yyresult;
  /* Number of tokens to shift before error messages enabled.  */
  int yyerrstatus;
  /* Look-ahead token as an internal (translated) token number.  */
  int yytoken = 0;
#if YYERROR_VERBOSE
  /* Buffer for error messages, and its allocated size.  */
  char yymsgbuf[128];
  char *yymsg = yymsgbuf;
  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif

  /* Three stacks and their tools:
     `yyss': related to states,
     `yyvs': related to semantic values,
     `yyls': related to locations.

     Refer to the stacks thru separate pointers, to allow yyoverflow
     to reallocate them elsewhere.  */

  /* The state stack.  */
  yytype_int16 yyssa[YYINITDEPTH];
  yytype_int16 *yyss = yyssa;
  yytype_int16 *yyssp;

  /* The semantic value stack.  */
  YYSTYPE yyvsa[YYINITDEPTH];
  YYSTYPE *yyvs = yyvsa;
  YYSTYPE *yyvsp;



#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))

  YYSIZE_T yystacksize = YYINITDEPTH;

  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;


  /* The number of symbols on the RHS of the reduced rule.
     Keep to zero when no symbol should be popped.  */
  int yylen = 0;

  YYDPRINTF ((stderr, "Starting parse\n"));

  yystate = 0;
  yyerrstatus = 0;
  yynerrs = 0;
  yychar = YYEMPTY;		/* Cause a token to be read.  */

  /* Initialize stack pointers.
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */

  yyssp = yyss;
  yyvsp = yyvs;

  goto yysetstate;

/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
 yynewstate:
  /* In all cases, when you get here, the value and location stacks
     have just been pushed.  So pushing a state here evens the stacks.  */
  yyssp++;

 yysetstate:
  *yyssp = yystate;

  if (yyss + yystacksize - 1 <= yyssp)
    {
      /* Get the current used size of the three stacks, in elements.  */
      YYSIZE_T yysize = yyssp - yyss + 1;

#ifdef yyoverflow
      {
	/* Give user a chance to reallocate the stack.  Use copies of
	   these so that the &'s don't force the real ones into
	   memory.  */
	YYSTYPE *yyvs1 = yyvs;
	yytype_int16 *yyss1 = yyss;


	/* Each stack pointer address is followed by the size of the
	   data in use in that stack, in bytes.  This used to be a
	   conditional around just the two extra args, but that might
	   be undefined if yyoverflow is a macro.  */
	yyoverflow (YY_("memory exhausted"),
		    &yyss1, yysize * sizeof (*yyssp),
		    &yyvs1, yysize * sizeof (*yyvsp),

		    &yystacksize);

	yyss = yyss1;
	yyvs = yyvs1;
      }
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
      goto yyexhaustedlab;
# else
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
	goto yyexhaustedlab;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
	yystacksize = YYMAXDEPTH;

      {
	yytype_int16 *yyss1 = yyss;
	union yyalloc *yyptr =
	  (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
	if (! yyptr)
	  goto yyexhaustedlab;
	YYSTACK_RELOCATE (yyss);
	YYSTACK_RELOCATE (yyvs);

#  undef YYSTACK_RELOCATE
	if (yyss1 != yyssa)
	  YYSTACK_FREE (yyss1);
      }
# endif
#endif /* no yyoverflow */

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;


      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
		  (unsigned long int) yystacksize));

      if (yyss + yystacksize - 1 <= yyssp)
	YYABORT;
    }

  YYDPRINTF ((stderr, "Entering state %d\n", yystate));

  goto yybackup;

/*-----------.
| yybackup.  |
`-----------*/
yybackup:

  /* Do appropriate processing given the current state.  Read a
     look-ahead token if we need one and don't already have one.  */

  /* First try to decide what to do without reference to look-ahead token.  */
  yyn = yypact[yystate];
  if (yyn == YYPACT_NINF)
    goto yydefault;

  /* Not known => get a look-ahead token if don't already have one.  */

  /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol.  */
  if (yychar == YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token: "));
      yychar = YYLEX;
    }

  if (yychar <= YYEOF)
    {
      yychar = yytoken = YYEOF;
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else
    {
      yytoken = YYTRANSLATE (yychar);
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    }

  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
  yyn += yytoken;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    goto yydefault;
  yyn = yytable[yyn];
  if (yyn <= 0)
    {
      if (yyn == 0 || yyn == YYTABLE_NINF)
	goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  if (yyn == YYFINAL)
    YYACCEPT;

  /* Count tokens shifted since error; after three, turn off error
     status.  */
  if (yyerrstatus)
    yyerrstatus--;

  /* Shift the look-ahead token.  */
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);

  /* Discard the shifted token unless it is eof.  */
  if (yychar != YYEOF)
    yychar = YYEMPTY;

  yystate = yyn;
  *++yyvsp = yylval;

  goto yynewstate;


/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;
  goto yyreduce;


/*-----------------------------.
| yyreduce -- Do a reduction.  |
`-----------------------------*/
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];

  /* If YYLEN is nonzero, implement the default value of the action:
     `$$ = $1'.

     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];


  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
        case 27:
#line 440 "ircd_parser.y"
    { (yyval.number) = 0; }
    break;

  case 29:
#line 442 "ircd_parser.y"
    {
			(yyval.number) = (yyvsp[(1) - (2)].number) + (yyvsp[(2) - (2)].number);
		}
    break;

  case 30:
#line 446 "ircd_parser.y"
    {
			(yyval.number) = (yyvsp[(1) - (3)].number) + (yyvsp[(3) - (3)].number);
		}
    break;

  case 31:
#line 450 "ircd_parser.y"
    {
			(yyval.number) = (yyvsp[(1) - (3)].number) * 60 + (yyvsp[(3) - (3)].number);
		}
    break;

  case 32:
#line 454 "ircd_parser.y"
    {
			(yyval.number) = (yyvsp[(1) - (3)].number) * 60 * 60 + (yyvsp[(3) - (3)].number);
		}
    break;

  case 33:
#line 458 "ircd_parser.y"
    {
			(yyval.number) = (yyvsp[(1) - (3)].number) * 60 * 60 * 24 + (yyvsp[(3) - (3)].number);
		}
    break;

  case 34:
#line 462 "ircd_parser.y"
    {
			(yyval.number) = (yyvsp[(1) - (3)].number) * 60 * 60 * 24 * 7 + (yyvsp[(3) - (3)].number);
		}
    break;

  case 35:
#line 467 "ircd_parser.y"
    { (yyval.number) = 0; }
    break;

  case 37:
#line 468 "ircd_parser.y"
    { (yyval.number) = (yyvsp[(1) - (2)].number) + (yyvsp[(2) - (2)].number); }
    break;

  case 38:
#line 469 "ircd_parser.y"
    { (yyval.number) = (yyvsp[(1) - (3)].number) + (yyvsp[(3) - (3)].number); }
    break;

  case 39:
#line 470 "ircd_parser.y"
    { (yyval.number) = (yyvsp[(1) - (3)].number) * 1024 + (yyvsp[(3) - (3)].number); }
    break;

  case 40:
#line 471 "ircd_parser.y"
    { (yyval.number) = (yyvsp[(1) - (3)].number) * 1024 * 1024 + (yyvsp[(3) - (3)].number); }
    break;

  case 47:
#line 485 "ircd_parser.y"
    {
#ifndef STATIC_MODULES /* NOOP in the static case */
  if (ypass == 2)
  {
    char *m_bn;

    m_bn = basename(yylval.string);

    /* I suppose we should just ignore it if it is already loaded(since
     * otherwise we would flood the opers on rehash) -A1kmm.
     */
    add_conf_module(yylval.string);
  }
#endif
}
    break;

  case 48:
#line 502 "ircd_parser.y"
    {
#ifndef STATIC_MODULES
  if (ypass == 2)
    mod_add_path(yylval.string);
#endif
}
    break;

  case 64:
#line 526 "ircd_parser.y"
    {
#ifdef HAVE_LIBCRYPTO
  if (ypass == 2 && ServerInfo.ctx) 
  {
    if (!ServerInfo.rsa_private_key_file)
    {
      yyerror("No rsa_private_key_file specified, SSL disabled");
      break;
    }

    if (SSL_CTX_use_certificate_file(ServerInfo.ctx,
      yylval.string, SSL_FILETYPE_PEM) <= 0)
    {
      yyerror(ERR_lib_error_string(ERR_get_error()));
      break;
    }

    if (SSL_CTX_use_PrivateKey_file(ServerInfo.ctx,
      ServerInfo.rsa_private_key_file, SSL_FILETYPE_PEM) <= 0)
    {
      yyerror(ERR_lib_error_string(ERR_get_error()));
      break;
    }

    if (!SSL_CTX_check_private_key(ServerInfo.ctx))
    {
      yyerror("RSA private key does not match the SSL certificate public key!");
      break;
    }
  }
#endif
}
    break;

  case 65:
#line 560 "ircd_parser.y"
    {
#ifdef HAVE_LIBCRYPTO
  if (ypass == 1)
  {
    BIO *file;

    if (ServerInfo.rsa_private_key)
    {
      RSA_free(ServerInfo.rsa_private_key);
      ServerInfo.rsa_private_key = NULL;
    }

    if (ServerInfo.rsa_private_key_file)
    {
      MyFree(ServerInfo.rsa_private_key_file);
      ServerInfo.rsa_private_key_file = NULL;
    }

    DupString(ServerInfo.rsa_private_key_file, yylval.string);

    if ((file = BIO_new_file(yylval.string, "r")) == NULL)
    {
      yyerror("File open failed, ignoring");
      break;
    }

    ServerInfo.rsa_private_key = (RSA *)PEM_read_bio_RSAPrivateKey(file, NULL,
      0, NULL);

    BIO_set_close(file, BIO_CLOSE);
    BIO_free(file);

    if (ServerInfo.rsa_private_key == NULL)
    {
      yyerror("Couldn't extract key, ignoring");
      break;
    }

    if (!RSA_check_key(ServerInfo.rsa_private_key))
    {
      RSA_free(ServerInfo.rsa_private_key);
      ServerInfo.rsa_private_key = NULL;

      yyerror("Invalid key, ignoring");
      break;
    }

    /* require 2048 bit (256 byte) key */
    if (RSA_size(ServerInfo.rsa_private_key) != 256)
    {
      RSA_free(ServerInfo.rsa_private_key);
      ServerInfo.rsa_private_key = NULL;

      yyerror("Not a 2048 bit key, ignoring");
    }
  }
#endif
}
    break;

  case 66:
#line 620 "ircd_parser.y"
    {
  /* this isn't rehashable */
  if (ypass == 2)
  {
    if (ServerInfo.name == NULL)
    {
      /* the ircd will exit() in main() if we dont set one */
      if (strlen(yylval.string) <= HOSTLEN)
        DupString(ServerInfo.name, yylval.string);
    }
  }
}
    break;

  case 67:
#line 634 "ircd_parser.y"
    {
  /* this isn't rehashable */
  if (ypass == 2 && !ServerInfo.sid)
  {
    if (valid_sid(yylval.string))
      DupString(ServerInfo.sid, yylval.string);
    else
    {
      ilog(L_ERROR, "Ignoring config file entry SID -- invalid SID. Aborting.");
      exit(0);
    }
  }
}
    break;

  case 68:
#line 649 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(ServerInfo.description);
    DupString(ServerInfo.description,yylval.string);
  }
}
    break;

  case 69:
#line 658 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    char *p;

    if ((p = strchr(yylval.string, ' ')) != NULL)
      p = '\0';

    MyFree(ServerInfo.network_name);
    DupString(ServerInfo.network_name, yylval.string);
  }
}
    break;

  case 70:
#line 672 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(ServerInfo.network_desc);
    DupString(ServerInfo.network_desc, yylval.string);
  }
}
    break;

  case 71:
#line 681 "ircd_parser.y"
    {
  if (ypass == 2 && *yylval.string != '*')
  {
    struct addrinfo hints, *res;

    memset(&hints, 0, sizeof(hints));

    hints.ai_family   = AF_UNSPEC;
    hints.ai_socktype = SOCK_STREAM;
    hints.ai_flags    = AI_PASSIVE | AI_NUMERICHOST;

    if (irc_getaddrinfo(yylval.string, NULL, &hints, &res))
      ilog(L_ERROR, "Invalid netmask for server vhost(%s)", yylval.string);
    else
    {
      assert(res != NULL);

      memcpy(&ServerInfo.ip, res->ai_addr, res->ai_addrlen);
      ServerInfo.ip.ss.ss_family = res->ai_family;
      ServerInfo.ip.ss_len = res->ai_addrlen;
      irc_freeaddrinfo(res);

      ServerInfo.specific_ipv4_vhost = 1;
    }
  }
}
    break;

  case 72:
#line 709 "ircd_parser.y"
    {
#ifdef IPV6
  if (ypass == 2 && *yylval.string != '*')
  {
    struct addrinfo hints, *res;

    memset(&hints, 0, sizeof(hints));

    hints.ai_family   = AF_UNSPEC;
    hints.ai_socktype = SOCK_STREAM;
    hints.ai_flags    = AI_PASSIVE | AI_NUMERICHOST;

    if (irc_getaddrinfo(yylval.string, NULL, &hints, &res))
      ilog(L_ERROR, "Invalid netmask for server vhost6(%s)", yylval.string);
    else
    {
      assert(res != NULL);

      memcpy(&ServerInfo.ip6, res->ai_addr, res->ai_addrlen);
      ServerInfo.ip6.ss.ss_family = res->ai_family;
      ServerInfo.ip6.ss_len = res->ai_addrlen;
      irc_freeaddrinfo(res);

      ServerInfo.specific_ipv6_vhost = 1;
    }
  }
#endif
}
    break;

  case 73:
#line 739 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    recalc_fdlimit(NULL);

    if ((yyvsp[(3) - (4)].number) < MAXCLIENTS_MIN)
    {
      char buf[IRCD_BUFSIZE];
      ircsprintf(buf, "MAXCLIENTS too low, setting to %d", MAXCLIENTS_MIN);
      yyerror(buf);
    }
    else if ((yyvsp[(3) - (4)].number) > MAXCLIENTS_MAX)
    {
      char buf[IRCD_BUFSIZE];
      ircsprintf(buf, "MAXCLIENTS too high, setting to %d", MAXCLIENTS_MAX);
      yyerror(buf);
    }
    else
      ServerInfo.max_clients = (yyvsp[(3) - (4)].number);
  }
}
    break;

  case 74:
#line 762 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
    {
      /* Don't become a hub if we have a lazylink active. */
      if (!ServerInfo.hub && uplink && IsCapable(uplink, CAP_LL))
      {
        sendto_realops_flags(UMODE_ALL, L_ALL,
                             "Ignoring config file line hub=yes; "
                             "due to active LazyLink (%s)", uplink->name);
      }
      else
      {
        ServerInfo.hub = 1;
        uplink = NULL;
        delete_capability("HUB");
        add_capability("HUB", CAP_HUB, 1);
      }
    }
    else if (ServerInfo.hub)
    {
      dlink_node *ptr = NULL;

      ServerInfo.hub = 0;
      delete_capability("HUB");

      /* Don't become a leaf if we have a lazylink active. */
      DLINK_FOREACH(ptr, serv_list.head)
      {
        const struct Client *acptr = ptr->data;
        if (MyConnect(acptr) && IsCapable(acptr, CAP_LL))
        {
          sendto_realops_flags(UMODE_ALL, L_ALL,
                               "Ignoring config file line hub=no; "
                               "due to active LazyLink (%s)",
                               acptr->name);
          add_capability("HUB", CAP_HUB, 1);
          ServerInfo.hub = 1;
          break;
        }
      }
    }
  }
}
    break;

  case 82:
#line 818 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(AdminInfo.name);
    DupString(AdminInfo.name, yylval.string);
  }
}
    break;

  case 83:
#line 827 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(AdminInfo.email);
    DupString(AdminInfo.email, yylval.string);
  }
}
    break;

  case 84:
#line 836 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(AdminInfo.description);
    DupString(AdminInfo.description, yylval.string);
  }
}
    break;

  case 101:
#line 863 "ircd_parser.y"
    {
                        }
    break;

  case 102:
#line 867 "ircd_parser.y"
    {
                        }
    break;

  case 103:
#line 871 "ircd_parser.y"
    {
  if (ypass == 2)
    strlcpy(ConfigLoggingEntry.userlog, yylval.string,
            sizeof(ConfigLoggingEntry.userlog));
}
    break;

  case 104:
#line 878 "ircd_parser.y"
    {
  if (ypass == 2)
    strlcpy(ConfigLoggingEntry.failed_operlog, yylval.string,
            sizeof(ConfigLoggingEntry.failed_operlog));
}
    break;

  case 105:
#line 885 "ircd_parser.y"
    {
  if (ypass == 2)
    strlcpy(ConfigLoggingEntry.operlog, yylval.string,
            sizeof(ConfigLoggingEntry.operlog));
}
    break;

  case 106:
#line 892 "ircd_parser.y"
    {
  if (ypass == 2)
    strlcpy(ConfigLoggingEntry.operspylog, yylval.string,
            sizeof(ConfigLoggingEntry.operspylog));
}
    break;

  case 107:
#line 899 "ircd_parser.y"
    {
  if (ypass == 2)
    strlcpy(ConfigLoggingEntry.glinelog, yylval.string,
            sizeof(ConfigLoggingEntry.glinelog));
}
    break;

  case 108:
#line 906 "ircd_parser.y"
    {
  if (ypass == 2)
    strlcpy(ConfigLoggingEntry.klinelog, yylval.string,
            sizeof(ConfigLoggingEntry.klinelog));
}
    break;

  case 109:
#line 913 "ircd_parser.y"
    {
  if (ypass == 2)
    strlcpy(ConfigLoggingEntry.ioerrlog, yylval.string,
            sizeof(ConfigLoggingEntry.ioerrlog));
}
    break;

  case 110:
#line 920 "ircd_parser.y"
    {
  if (ypass == 2)
    strlcpy(ConfigLoggingEntry.killlog, yylval.string,
            sizeof(ConfigLoggingEntry.killlog));
}
    break;

  case 111:
#line 927 "ircd_parser.y"
    { 
  if (ypass == 2)
    set_log_level(L_CRIT);
}
    break;

  case 112:
#line 931 "ircd_parser.y"
    {
  if (ypass == 2)
    set_log_level(L_ERROR);
}
    break;

  case 113:
#line 935 "ircd_parser.y"
    {
  if (ypass == 2)
    set_log_level(L_WARN);
}
    break;

  case 114:
#line 939 "ircd_parser.y"
    {
  if (ypass == 2)
    set_log_level(L_NOTICE);
}
    break;

  case 115:
#line 943 "ircd_parser.y"
    {
  if (ypass == 2)
    set_log_level(L_TRACE);
}
    break;

  case 116:
#line 947 "ircd_parser.y"
    {
  if (ypass == 2)
    set_log_level(L_INFO);
}
    break;

  case 117:
#line 951 "ircd_parser.y"
    {
  if (ypass == 2)
    set_log_level(L_DEBUG);
}
    break;

  case 118:
#line 957 "ircd_parser.y"
    {
  if (ypass == 2)
    ConfigLoggingEntry.use_logging = yylval.number;
}
    break;

  case 119:
#line 966 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    yy_conf = make_conf_item(OPER_TYPE);
    yy_aconf = map_to_conf(yy_conf);
    SetConfEncrypted(yy_aconf); /* Yes, the default is encrypted */
  }
  else
  {
    MyFree(class_name);
    class_name = NULL;
  }
}
    break;

  case 120:
#line 979 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    struct CollectItem *yy_tmp;
    dlink_node *ptr;
    dlink_node *next_ptr;

    conf_add_class_to_conf(yy_conf, class_name);

    /* Now, make sure there is a copy of the "base" given oper
     * block in each of the collected copies
     */

    DLINK_FOREACH_SAFE(ptr, next_ptr, col_conf_list.head)
    {
      struct AccessItem *new_aconf;
      struct ConfItem *new_conf;
      yy_tmp = ptr->data;

      new_conf = make_conf_item(OPER_TYPE);
      new_aconf = (struct AccessItem *)map_to_conf(new_conf);

      new_aconf->flags = yy_aconf->flags;

      if (yy_conf->name != NULL)
        DupString(new_conf->name, yy_conf->name);
      if (yy_tmp->user != NULL)
	DupString(new_aconf->user, yy_tmp->user);
      else
	DupString(new_aconf->user, "*");
      if (yy_tmp->host != NULL)
	DupString(new_aconf->host, yy_tmp->host);
      else
	DupString(new_aconf->host, "*");
      conf_add_class_to_conf(new_conf, class_name);
      if (yy_aconf->passwd != NULL)
        DupString(new_aconf->passwd, yy_aconf->passwd);

      new_aconf->port = yy_aconf->port;
#ifdef HAVE_LIBCRYPTO
      if (yy_aconf->rsa_public_key_file != NULL)
      {
        BIO *file;

        DupString(new_aconf->rsa_public_key_file,
		  yy_aconf->rsa_public_key_file);

        file = BIO_new_file(yy_aconf->rsa_public_key_file, "r");
        new_aconf->rsa_public_key = (RSA *)PEM_read_bio_RSA_PUBKEY(file, 
							   NULL, 0, NULL);
        BIO_set_close(file, BIO_CLOSE);
        BIO_free(file);
      }
#endif

#ifdef HAVE_LIBCRYPTO
      if (yy_tmp->name && (yy_tmp->passwd || yy_aconf->rsa_public_key)
	  && yy_tmp->host)
#else
      if (yy_tmp->name && yy_tmp->passwd && yy_tmp->host)
#endif
      {
        conf_add_class_to_conf(new_conf, class_name);
	if (yy_tmp->name != NULL)
	  DupString(new_conf->name, yy_tmp->name);
      }

      dlinkDelete(&yy_tmp->node, &col_conf_list);
      free_collect_item(yy_tmp);
    }

    yy_conf = NULL;
    yy_aconf = NULL;


    MyFree(class_name);
    class_name = NULL;
  }
}
    break;

  case 148:
#line 1071 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (strlen(yylval.string) > OPERNICKLEN)
      yylval.string[OPERNICKLEN] = '\0';

    MyFree(yy_conf->name);
    DupString(yy_conf->name, yylval.string);
  }
}
    break;

  case 149:
#line 1083 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (strlen(yylval.string) > OPERNICKLEN)
      yylval.string[OPERNICKLEN] = '\0';

    MyFree(yy_conf->name);
    DupString(yy_conf->name, yylval.string);
  }
}
    break;

  case 150:
#line 1095 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    struct split_nuh_item nuh;

    nuh.nuhmask  = yylval.string;
    nuh.nickptr  = NULL;
    nuh.userptr  = userbuf;
    nuh.hostptr  = hostbuf;

    nuh.nicksize = 0;
    nuh.usersize = sizeof(userbuf);
    nuh.hostsize = sizeof(hostbuf);

    split_nuh(&nuh);

    if (yy_aconf->user == NULL)
    {
      DupString(yy_aconf->user, userbuf);
      DupString(yy_aconf->host, hostbuf);
    }
    else
    {
      struct CollectItem *yy_tmp = MyMalloc(sizeof(struct CollectItem));

      DupString(yy_tmp->user, userbuf);
      DupString(yy_tmp->host, hostbuf);

      dlinkAdd(yy_tmp, &yy_tmp->node, &col_conf_list);
    }
  }
}
    break;

  case 151:
#line 1129 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yy_aconf->passwd != NULL)
      memset(yy_aconf->passwd, 0, strlen(yy_aconf->passwd));

    MyFree(yy_aconf->passwd);
    DupString(yy_aconf->passwd, yylval.string);
  }
}
    break;

  case 152:
#line 1141 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      SetConfEncrypted(yy_aconf);
    else
      ClearConfEncrypted(yy_aconf);
  }
}
    break;

  case 153:
#line 1152 "ircd_parser.y"
    {
#ifdef HAVE_LIBCRYPTO
  if (ypass == 2)
  {
    BIO *file;

    if (yy_aconf->rsa_public_key != NULL)
    {
      RSA_free(yy_aconf->rsa_public_key);
      yy_aconf->rsa_public_key = NULL;
    }

    if (yy_aconf->rsa_public_key_file != NULL)
    {
      MyFree(yy_aconf->rsa_public_key_file);
      yy_aconf->rsa_public_key_file = NULL;
    }

    DupString(yy_aconf->rsa_public_key_file, yylval.string);
    file = BIO_new_file(yylval.string, "r");

    if (file == NULL)
    {
      yyerror("Ignoring rsa_public_key_file -- file doesn't exist");
      break;
    }

    yy_aconf->rsa_public_key = (RSA *)PEM_read_bio_RSA_PUBKEY(file, NULL, 0, NULL);

    if (yy_aconf->rsa_public_key == NULL)
    {
      yyerror("Ignoring rsa_public_key_file -- Key invalid; check key syntax.");
      break;
    }

    BIO_set_close(file, BIO_CLOSE);
    BIO_free(file);
  }
#endif /* HAVE_LIBCRYPTO */
}
    break;

  case 154:
#line 1194 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(class_name);
    DupString(class_name, yylval.string);
  }
}
    break;

  case 155:
#line 1203 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes = 0;
}
    break;

  case 159:
#line 1210 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_BOTS;
}
    break;

  case 160:
#line 1214 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_CCONN;
}
    break;

  case 161:
#line 1218 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_CCONN_FULL;
}
    break;

  case 162:
#line 1222 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_DEAF;
}
    break;

  case 163:
#line 1226 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_DEBUG;
}
    break;

  case 164:
#line 1230 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_FULL;
}
    break;

  case 165:
#line 1234 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_SKILL;
}
    break;

  case 166:
#line 1238 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_NCHANGE;
}
    break;

  case 167:
#line 1242 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_REJ;
}
    break;

  case 168:
#line 1246 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_UNAUTH;
}
    break;

  case 169:
#line 1250 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_SPY;
}
    break;

  case 170:
#line 1254 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_EXTERNAL;
}
    break;

  case 171:
#line 1258 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_OPERWALL;
}
    break;

  case 172:
#line 1262 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_SERVNOTICE;
}
    break;

  case 173:
#line 1266 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_SERVICESNOTICE;
}
    break;

  case 174:
#line 1270 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_INVISIBLE;
}
    break;

  case 175:
#line 1274 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_WALLOP;
}
    break;

  case 176:
#line 1278 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_SOFTCALLERID;
}
    break;

  case 177:
#line 1282 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_CALLERID;
}
    break;

  case 178:
#line 1286 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->modes |= UMODE_LOCOPS;
}
    break;

  case 179:
#line 1292 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_GLOBAL_KILL;
    else
      yy_aconf->port &= ~OPER_FLAG_GLOBAL_KILL;
  }
}
    break;

  case 180:
#line 1303 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_REMOTE;
    else
      yy_aconf->port &= ~OPER_FLAG_REMOTE; 
  }
}
    break;

  case 181:
#line 1314 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_REMOTEBAN;
    else
      yy_aconf->port &= ~OPER_FLAG_REMOTEBAN;
  }
}
    break;

  case 182:
#line 1325 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_K;
    else
      yy_aconf->port &= ~OPER_FLAG_K;
  }
}
    break;

  case 183:
#line 1336 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_X;
    else
      yy_aconf->port &= ~OPER_FLAG_X;
  }
}
    break;

  case 184:
#line 1347 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_UNKLINE;
    else
      yy_aconf->port &= ~OPER_FLAG_UNKLINE; 
  }
}
    break;

  case 185:
#line 1358 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_GLINE;
    else
      yy_aconf->port &= ~OPER_FLAG_GLINE;
  }
}
    break;

  case 186:
#line 1369 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_N;
    else
      yy_aconf->port &= ~OPER_FLAG_N;
  }
}
    break;

  case 187:
#line 1380 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_DIE;
    else
      yy_aconf->port &= ~OPER_FLAG_DIE;
  }
}
    break;

  case 188:
#line 1391 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_REHASH;
    else
      yy_aconf->port &= ~OPER_FLAG_REHASH;
  }
}
    break;

  case 189:
#line 1402 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_ADMIN;
    else
      yy_aconf->port &= ~OPER_FLAG_ADMIN;
  }
}
    break;

  case 190:
#line 1413 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_HIDDEN_ADMIN;
    else
      yy_aconf->port &= ~OPER_FLAG_HIDDEN_ADMIN;
  }
}
    break;

  case 191:
#line 1424 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_HIDDEN_OPER;
    else
      yy_aconf->port &= ~OPER_FLAG_HIDDEN_OPER;
  }
}
    break;

  case 192:
#line 1435 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->port |= OPER_FLAG_OPERWALL;
    else
      yy_aconf->port &= ~OPER_FLAG_OPERWALL;
  }
}
    break;

  case 193:
#line 1446 "ircd_parser.y"
    {
}
    break;

  case 197:
#line 1450 "ircd_parser.y"
    { not_atom = 1; }
    break;

  case 199:
#line 1451 "ircd_parser.y"
    { not_atom = 0; }
    break;

  case 201:
#line 1454 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom)yy_aconf->port &= ~OPER_FLAG_GLOBAL_KILL;
    else yy_aconf->port |= OPER_FLAG_GLOBAL_KILL;
  }
}
    break;

  case 202:
#line 1461 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_REMOTE;
    else yy_aconf->port |= OPER_FLAG_REMOTE;
  }
}
    break;

  case 203:
#line 1468 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_K;
    else yy_aconf->port |= OPER_FLAG_K;
  }
}
    break;

  case 204:
#line 1475 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_UNKLINE;
    else yy_aconf->port |= OPER_FLAG_UNKLINE;
  } 
}
    break;

  case 205:
#line 1482 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_X;
    else yy_aconf->port |= OPER_FLAG_X;
  }
}
    break;

  case 206:
#line 1489 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_GLINE;
    else yy_aconf->port |= OPER_FLAG_GLINE;
  }
}
    break;

  case 207:
#line 1496 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_DIE;
    else yy_aconf->port |= OPER_FLAG_DIE;
  }
}
    break;

  case 208:
#line 1503 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_REHASH;
    else yy_aconf->port |= OPER_FLAG_REHASH;
  }
}
    break;

  case 209:
#line 1510 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_ADMIN;
    else yy_aconf->port |= OPER_FLAG_ADMIN;
  }
}
    break;

  case 210:
#line 1517 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_HIDDEN_ADMIN;
    else yy_aconf->port |= OPER_FLAG_HIDDEN_ADMIN;
  }
}
    break;

  case 211:
#line 1524 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_N;
    else yy_aconf->port |= OPER_FLAG_N;
  }
}
    break;

  case 212:
#line 1531 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_OPERWALL;
    else yy_aconf->port |= OPER_FLAG_OPERWALL;
  }
}
    break;

  case 213:
#line 1538 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_OPER_SPY;
    else yy_aconf->port |= OPER_FLAG_OPER_SPY;
  }
}
    break;

  case 214:
#line 1545 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_HIDDEN_OPER;
    else yy_aconf->port |= OPER_FLAG_HIDDEN_OPER;
  }
}
    break;

  case 215:
#line 1552 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->port &= ~OPER_FLAG_REMOTEBAN;
    else yy_aconf->port |= OPER_FLAG_REMOTEBAN;
  }
}
    break;

  case 216:
#line 1559 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) ClearConfEncrypted(yy_aconf);
    else SetConfEncrypted(yy_aconf);
  }
}
    break;

  case 217:
#line 1572 "ircd_parser.y"
    {
  if (ypass == 1)
  {
    yy_conf = make_conf_item(CLASS_TYPE);
    yy_class = map_to_conf(yy_conf);
  }
}
    break;

  case 218:
#line 1579 "ircd_parser.y"
    {
  if (ypass == 1)
  {
    struct ConfItem *cconf = NULL;
    struct ClassItem *class = NULL;

    if (yy_class_name == NULL)
      delete_conf_item(yy_conf);
    else
    {
      cconf = find_exact_name_conf(CLASS_TYPE, yy_class_name, NULL, NULL);

      if (cconf != NULL)		/* The class existed already */
      {
        int user_count = 0;

        rebuild_cidr_class(cconf, yy_class);

        class = map_to_conf(cconf);

        user_count = class->curr_user_count;
        memcpy(class, yy_class, sizeof(*class));
        class->curr_user_count = user_count;
        class->active = 1;

        delete_conf_item(yy_conf);

        MyFree(cconf->name);            /* Allows case change of class name */
        cconf->name = yy_class_name;
      }
      else	/* Brand new class */
      {
        MyFree(yy_conf->name);          /* just in case it was allocated */
        yy_conf->name = yy_class_name;
        yy_class->active = 1;
      }
    }

    yy_class_name = NULL;
  }
}
    break;

  case 237:
#line 1639 "ircd_parser.y"
    {
  if (ypass == 1)
  {
    MyFree(yy_class_name);
    DupString(yy_class_name, yylval.string);
  }
}
    break;

  case 238:
#line 1648 "ircd_parser.y"
    {
  if (ypass == 1)
  {
    MyFree(yy_class_name);
    DupString(yy_class_name, yylval.string);
  }
}
    break;

  case 239:
#line 1657 "ircd_parser.y"
    {
  if (ypass == 1)
    PingFreq(yy_class) = (yyvsp[(3) - (4)].number);
}
    break;

  case 240:
#line 1663 "ircd_parser.y"
    {
  if (ypass == 1)
    PingWarning(yy_class) = (yyvsp[(3) - (4)].number);
}
    break;

  case 241:
#line 1669 "ircd_parser.y"
    {
  if (ypass == 1)
    MaxPerIp(yy_class) = (yyvsp[(3) - (4)].number);
}
    break;

  case 242:
#line 1675 "ircd_parser.y"
    {
  if (ypass == 1)
    ConFreq(yy_class) = (yyvsp[(3) - (4)].number);
}
    break;

  case 243:
#line 1681 "ircd_parser.y"
    {
  if (ypass == 1)
    MaxTotal(yy_class) = (yyvsp[(3) - (4)].number);
}
    break;

  case 244:
#line 1687 "ircd_parser.y"
    {
  if (ypass == 1)
    MaxGlobal(yy_class) = (yyvsp[(3) - (4)].number);
}
    break;

  case 245:
#line 1693 "ircd_parser.y"
    {
  if (ypass == 1)
    MaxLocal(yy_class) = (yyvsp[(3) - (4)].number);
}
    break;

  case 246:
#line 1699 "ircd_parser.y"
    {
  if (ypass == 1)
    MaxIdent(yy_class) = (yyvsp[(3) - (4)].number);
}
    break;

  case 247:
#line 1705 "ircd_parser.y"
    {
  if (ypass == 1)
    MaxSendq(yy_class) = (yyvsp[(3) - (4)].number);
}
    break;

  case 248:
#line 1711 "ircd_parser.y"
    {
  if (ypass == 1)
    CidrBitlenIPV4(yy_class) = (yyvsp[(3) - (4)].number);
}
    break;

  case 249:
#line 1717 "ircd_parser.y"
    {
  if (ypass == 1)
    CidrBitlenIPV6(yy_class) = (yyvsp[(3) - (4)].number);
}
    break;

  case 250:
#line 1723 "ircd_parser.y"
    {
  if (ypass == 1)
    NumberPerCidr(yy_class) = (yyvsp[(3) - (4)].number);
}
    break;

  case 251:
#line 1731 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    charset_name = NULL;
  }
}
    break;

  case 252:
#line 1737 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(charset_name);
    charset_name = NULL;
  }
}
    break;

  case 258:
#line 1749 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(charset_name);
    DupString(charset_name, yylval.string);
  }
}
    break;

  case 259:
#line 1758 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (strlen(charset_name) <= CHARSETLEN)
    {
      if ( (translate_codepage_add(charset_name, yylval.string)) == NULL )
      {
        ilog(L_WARN, "Can't load codepage %s from %s", charset_name, yylval.string);
      }
    } else {
      ilog(L_WARN, "Too long charset name");
    }
  }
}
    break;

  case 260:
#line 1776 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    listener_address = NULL;
    listener_charset = NULL;
    listener_flags = 0;
  }
}
    break;

  case 261:
#line 1784 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(listener_address);
    MyFree(listener_charset);
    listener_address = NULL;
    listener_charset = NULL;
  }
}
    break;

  case 262:
#line 1795 "ircd_parser.y"
    {
  listener_flags = 0;
}
    break;

  case 266:
#line 1801 "ircd_parser.y"
    {
  if (ypass == 2)
    listener_flags |= LISTENER_SSL;
}
    break;

  case 267:
#line 1805 "ircd_parser.y"
    {
  if (ypass == 2)
    listener_flags |= LISTENER_HIDDEN;
}
    break;

  case 276:
#line 1813 "ircd_parser.y"
    { listener_flags = 0; }
    break;

  case 280:
#line 1818 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if ((listener_flags & LISTENER_SSL))
#ifdef HAVE_LIBCRYPTO
      if (!ServerInfo.ctx)
#endif
      {
        yyerror("SSL not available - port closed");
	break;
      }
    add_listener((yyvsp[(1) - (1)].number), listener_address, listener_flags, listener_charset);
  }
}
    break;

  case 281:
#line 1832 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    int i;

    if ((listener_flags & LISTENER_SSL))
#ifdef HAVE_LIBCRYPTO
      if (!ServerInfo.ctx)
#endif
      {
        yyerror("SSL not available - port closed");
	break;
      }

    for (i = (yyvsp[(1) - (3)].number); i <= (yyvsp[(3) - (3)].number); ++i)
      add_listener(i, listener_address, listener_flags, listener_charset);
  }
}
    break;

  case 282:
#line 1852 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(listener_address);
    DupString(listener_address, yylval.string);
  }
}
    break;

  case 283:
#line 1861 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(listener_address);
    DupString(listener_address, yylval.string);
  }
}
    break;

  case 284:
#line 1870 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(listener_charset);
    DupString(listener_charset, yylval.string);
  }
}
    break;

  case 285:
#line 1882 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    yy_conf = make_conf_item(CLIENT_TYPE);
    yy_aconf = map_to_conf(yy_conf);
  }
  else
  {
    MyFree(class_name);
    class_name = NULL;
  }
}
    break;

  case 286:
#line 1894 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    struct CollectItem *yy_tmp = NULL;
    dlink_node *ptr = NULL, *next_ptr = NULL;

    if (yy_aconf->user && yy_aconf->host)
    {
      conf_add_class_to_conf(yy_conf, class_name);
      add_conf_by_address(CONF_CLIENT, yy_aconf);
    }
    else
      delete_conf_item(yy_conf);

    /* copy over settings from first struct */
    DLINK_FOREACH_SAFE(ptr, next_ptr, col_conf_list.head)
    {
      struct AccessItem *new_aconf;
      struct ConfItem *new_conf;

      new_conf = make_conf_item(CLIENT_TYPE);
      new_aconf = map_to_conf(new_conf);

      yy_tmp = ptr->data;

      assert(yy_tmp->user && yy_tmp->host);

      if (yy_aconf->autojoin != NULL)
        DupString(new_aconf->autojoin, yy_aconf->autojoin);
      if (yy_aconf->passwd != NULL)
        DupString(new_aconf->passwd, yy_aconf->passwd);
      if (yy_conf->name != NULL)
        DupString(new_conf->name, yy_conf->name);
      if (yy_conf->spoof_mask != NULL)
        DupString(new_conf->spoof_mask, yy_conf->spoof_mask);
      if (yy_aconf->passwd != NULL)
        DupString(new_aconf->passwd, yy_aconf->passwd);

      new_aconf->flags = yy_aconf->flags;
      new_aconf->port  = yy_aconf->port;

      DupString(new_aconf->user, yy_tmp->user);
      collapse(new_aconf->user);

      DupString(new_aconf->host, yy_tmp->host);
      collapse(new_aconf->host);

      conf_add_class_to_conf(new_conf, class_name);
      add_conf_by_address(CONF_CLIENT, new_aconf);
      dlinkDelete(&yy_tmp->node, &col_conf_list);
      free_collect_item(yy_tmp);
    }

    MyFree(class_name);
    class_name = NULL;
    yy_conf = NULL;
    yy_aconf = NULL;
  }
}
    break;

  case 308:
#line 1964 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    struct CollectItem *yy_tmp = NULL;
    struct split_nuh_item nuh;

    nuh.nuhmask  = yylval.string;
    nuh.nickptr  = NULL;
    nuh.userptr  = userbuf;
    nuh.hostptr  = hostbuf;

    nuh.nicksize = 0;
    nuh.usersize = sizeof(userbuf);
    nuh.hostsize = sizeof(hostbuf);

    split_nuh(&nuh);

    if (yy_aconf->user == NULL)
    {
      DupString(yy_aconf->user, userbuf);
      DupString(yy_aconf->host, hostbuf);
    }
    else
    {
      yy_tmp = MyMalloc(sizeof(struct CollectItem));

      DupString(yy_tmp->user, userbuf);
      DupString(yy_tmp->host, hostbuf);

      dlinkAdd(yy_tmp, &yy_tmp->node, &col_conf_list);
    }
  }
}
    break;

  case 309:
#line 2001 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    /* be paranoid */
    if (yy_aconf->passwd != NULL)
      memset(yy_aconf->passwd, 0, strlen(yy_aconf->passwd));

    MyFree(yy_aconf->passwd);
    DupString(yy_aconf->passwd, yylval.string);
  }
}
    break;

  case 310:
#line 2014 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->flags |= CONF_FLAGS_SPOOF_NOTICE;
    else
      yy_aconf->flags &= ~CONF_FLAGS_SPOOF_NOTICE;
  }
}
    break;

  case 311:
#line 2025 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(class_name);
    DupString(class_name, yylval.string);
  }
}
    break;

  case 312:
#line 2034 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      SetConfEncrypted(yy_aconf);
    else
      ClearConfEncrypted(yy_aconf);
  }
}
    break;

  case 313:
#line 2045 "ircd_parser.y"
    {
}
    break;

  case 317:
#line 2049 "ircd_parser.y"
    { not_atom = 1; }
    break;

  case 319:
#line 2050 "ircd_parser.y"
    { not_atom = 0; }
    break;

  case 321:
#line 2053 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->flags &= ~CONF_FLAGS_SPOOF_NOTICE;
    else yy_aconf->flags |= CONF_FLAGS_SPOOF_NOTICE;
  }

}
    break;

  case 322:
#line 2061 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->flags &= ~CONF_FLAGS_NOLIMIT;
    else yy_aconf->flags |= CONF_FLAGS_NOLIMIT;
  }
}
    break;

  case 323:
#line 2068 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->flags &= ~CONF_FLAGS_EXEMPTKLINE;
    else yy_aconf->flags |= CONF_FLAGS_EXEMPTKLINE;
  } 
}
    break;

  case 324:
#line 2075 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->flags &= ~CONF_FLAGS_NEED_IDENTD;
    else yy_aconf->flags |= CONF_FLAGS_NEED_IDENTD;
  }
}
    break;

  case 325:
#line 2082 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->flags &= ~CONF_FLAGS_CAN_FLOOD;
    else yy_aconf->flags |= CONF_FLAGS_CAN_FLOOD;
  }
}
    break;

  case 326:
#line 2089 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->flags &= ~CONF_FLAGS_IDLE_LINED;
    else yy_aconf->flags |= CONF_FLAGS_IDLE_LINED;
  }
}
    break;

  case 327:
#line 2096 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->flags &= ~CONF_FLAGS_NO_TILDE;
    else yy_aconf->flags |= CONF_FLAGS_NO_TILDE;
  } 
}
    break;

  case 328:
#line 2103 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->flags &= ~CONF_FLAGS_EXEMPTGLINE;
    else yy_aconf->flags |= CONF_FLAGS_EXEMPTGLINE;
  } 
}
    break;

  case 329:
#line 2110 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->flags &= ~CONF_FLAGS_EXEMPTRESV;
    else yy_aconf->flags |= CONF_FLAGS_EXEMPTRESV;
  }
}
    break;

  case 330:
#line 2117 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom) yy_aconf->flags &= ~CONF_FLAGS_NEED_PASSWORD;
    else yy_aconf->flags |= CONF_FLAGS_NEED_PASSWORD;
  }
}
    break;

  case 331:
#line 2126 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->flags |= CONF_FLAGS_EXEMPTKLINE;
    else
      yy_aconf->flags &= ~CONF_FLAGS_EXEMPTKLINE;
  }
}
    break;

  case 332:
#line 2137 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->flags |= CONF_FLAGS_NEED_IDENTD;
    else
      yy_aconf->flags &= ~CONF_FLAGS_NEED_IDENTD;
  }
}
    break;

  case 333:
#line 2148 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->flags |= CONF_FLAGS_NOLIMIT;
    else
      yy_aconf->flags &= ~CONF_FLAGS_NOLIMIT;
  }
}
    break;

  case 334:
#line 2159 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->flags |= CONF_FLAGS_CAN_FLOOD;
    else
      yy_aconf->flags &= ~CONF_FLAGS_CAN_FLOOD;
  }
}
    break;

  case 335:
#line 2170 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->flags |= CONF_FLAGS_NO_TILDE;
    else
      yy_aconf->flags &= ~CONF_FLAGS_NO_TILDE;
  }
}
    break;

  case 336:
#line 2181 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->flags |= CONF_FLAGS_EXEMPTGLINE;
    else
      yy_aconf->flags &= ~CONF_FLAGS_EXEMPTGLINE;
  }
}
    break;

  case 337:
#line 2193 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(yy_conf->name);

    if (strlen(yylval.string) < HOSTLEN)
    {    
      DupString(yy_conf->name, yylval.string);
      yy_aconf->flags |= CONF_FLAGS_SPOOF_IP;
    }
    else
    {
      ilog(L_ERROR, "Spoofs must be less than %d..ignoring it", HOSTLEN);
      yy_conf->name = NULL;
    }
  }
}
    break;

  case 338:
#line 2213 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(yy_conf->spoof_mask);

    if (strlen(yylval.string) < HOSTLEN - 17)
    {    
      DupString(yy_conf->spoof_mask, yylval.string);
      yy_aconf->flags |= CONF_FLAGS_SPOOF_MASK_IP;
    }
    else
    {
      ilog(L_ERROR, "Spoofs must be less than %d..ignoring it", HOSTLEN - 17);
      yy_conf->spoof_mask = NULL;
    }
  }
}
    break;

  case 339:
#line 2232 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    yy_aconf->flags |= CONF_FLAGS_REDIR;
    MyFree(yy_conf->name);
    DupString(yy_conf->name, yylval.string);
  }
}
    break;

  case 340:
#line 2242 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    yy_aconf->flags |= CONF_FLAGS_REDIR;
    yy_aconf->port = (yyvsp[(3) - (4)].number);
  }
}
    break;

  case 341:
#line 2251 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->flags |= CONF_FLAGS_NEED_PASSWORD;
    else
      yy_aconf->flags &= ~CONF_FLAGS_NEED_PASSWORD;
  }
}
    break;

  case 342:
#line 2262 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (strlen(yylval.string) < CHANNELLEN)
    {
      MyFree(yy_aconf->autojoin);
      DupString(yy_aconf->autojoin, yylval.string);
      yy_aconf->flags |= CONF_FLAGS_AUTO_JOIN;
    }
    else
      ilog(L_ERROR, "Auto join channel name must be less than %d..ignoring it", CHANNELLEN);
  }
}
    break;

  case 343:
#line 2281 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(resv_reason);
    resv_reason = NULL;
  }
}
    break;

  case 344:
#line 2288 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(resv_reason);
    resv_reason = NULL;
  }
}
    break;

  case 351:
#line 2300 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(resv_reason);
    DupString(resv_reason, yylval.string);
  }
}
    break;

  case 352:
#line 2309 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (IsChanPrefix(*yylval.string))
    {
      char def_reason[] = "No reason";

      create_channel_resv(yylval.string, resv_reason != NULL ? resv_reason : def_reason, 1);
    }
  }
  /* ignore it for now.. but we really should make a warning if
   * its an erroneous name --fl_ */
}
    break;

  case 353:
#line 2324 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    char def_reason[] = "No reason";

    create_nick_resv(yylval.string, resv_reason != NULL ? resv_reason : def_reason, 1);
  }
}
    break;

  case 354:
#line 2337 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    yy_conf = make_conf_item(ULINE_TYPE);
    yy_match_item = map_to_conf(yy_conf);
    yy_match_item->action = SHARED_ALL;
  }
}
    break;

  case 355:
#line 2345 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    yy_conf = NULL;
  }
}
    break;

  case 362:
#line 2356 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(yy_conf->name);
    DupString(yy_conf->name, yylval.string);
  }
}
    break;

  case 363:
#line 2365 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    struct split_nuh_item nuh;

    nuh.nuhmask  = yylval.string;
    nuh.nickptr  = NULL;
    nuh.userptr  = userbuf;
    nuh.hostptr  = hostbuf;

    nuh.nicksize = 0;
    nuh.usersize = sizeof(userbuf);
    nuh.hostsize = sizeof(hostbuf);

    split_nuh(&nuh);

    DupString(yy_match_item->user, userbuf);
    DupString(yy_match_item->host, hostbuf);
  }
}
    break;

  case 364:
#line 2387 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action = 0;
}
    break;

  case 368:
#line 2394 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action |= SHARED_KLINE;
}
    break;

  case 369:
#line 2398 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action |= SHARED_TKLINE;
}
    break;

  case 370:
#line 2402 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action |= SHARED_UNKLINE;
}
    break;

  case 371:
#line 2406 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action |= SHARED_XLINE;
}
    break;

  case 372:
#line 2410 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action |= SHARED_TXLINE;
}
    break;

  case 373:
#line 2414 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action |= SHARED_UNXLINE;
}
    break;

  case 374:
#line 2418 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action |= SHARED_RESV;
}
    break;

  case 375:
#line 2422 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action |= SHARED_TRESV;
}
    break;

  case 376:
#line 2426 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action |= SHARED_UNRESV;
}
    break;

  case 377:
#line 2430 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action |= SHARED_LOCOPS;
}
    break;

  case 378:
#line 2434 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action |= SHARED_SVS;
}
    break;

  case 379:
#line 2438 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_match_item->action = SHARED_ALL;
}
    break;

  case 380:
#line 2447 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    yy_conf = make_conf_item(CLUSTER_TYPE);
    yy_conf->flags = SHARED_ALL;
  }
}
    break;

  case 381:
#line 2454 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yy_conf->name == NULL)
      DupString(yy_conf->name, "*");
    yy_conf = NULL;
  }
}
    break;

  case 387:
#line 2467 "ircd_parser.y"
    {
  if (ypass == 2)
    DupString(yy_conf->name, yylval.string);
}
    break;

  case 388:
#line 2473 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags = 0;
}
    break;

  case 392:
#line 2480 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags |= SHARED_KLINE;
}
    break;

  case 393:
#line 2484 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags |= SHARED_TKLINE;
}
    break;

  case 394:
#line 2488 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags |= SHARED_UNKLINE;
}
    break;

  case 395:
#line 2492 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags |= SHARED_XLINE;
}
    break;

  case 396:
#line 2496 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags |= SHARED_TXLINE;
}
    break;

  case 397:
#line 2500 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags |= SHARED_UNXLINE;
}
    break;

  case 398:
#line 2504 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags |= SHARED_RESV;
}
    break;

  case 399:
#line 2508 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags |= SHARED_TRESV;
}
    break;

  case 400:
#line 2512 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags |= SHARED_UNRESV;
}
    break;

  case 401:
#line 2516 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags |= SHARED_LOCOPS;
}
    break;

  case 402:
#line 2520 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags |= SHARED_SVS;
}
    break;

  case 403:
#line 2524 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_conf->flags = SHARED_ALL;
}
    break;

  case 404:
#line 2533 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    yy_conf = make_conf_item(SERVER_TYPE);
    yy_aconf = (struct AccessItem *)map_to_conf(yy_conf);
    yy_aconf->passwd = NULL;
    /* defaults */
    yy_aconf->port = PORTNUM;

    if (ConfigFileEntry.burst_away)
      yy_aconf->flags = CONF_FLAGS_BURST_AWAY;
  }
  else
  {
    MyFree(class_name);
    class_name = NULL;
  }
}
    break;

  case 405:
#line 2551 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    struct CollectItem *yy_hconf=NULL;
    struct CollectItem *yy_lconf=NULL;
    dlink_node *ptr;
    dlink_node *next_ptr;
#ifdef HAVE_LIBCRYPTO
    if (yy_aconf->host &&
	((yy_aconf->passwd && yy_aconf->spasswd) ||
	 (yy_aconf->rsa_public_key && IsConfCryptLink(yy_aconf))))
#else /* !HAVE_LIBCRYPTO */
      if (yy_aconf->host && !IsConfCryptLink(yy_aconf) && 
	  yy_aconf->passwd && yy_aconf->spasswd)
#endif /* !HAVE_LIBCRYPTO */
	{
	  if (conf_add_server(yy_conf, class_name) == -1)
	  {
	    delete_conf_item(yy_conf);
	    yy_conf = NULL;
	    yy_aconf = NULL;
	  }
	}
	else
	{
	  /* Even if yy_conf ->name is NULL
	   * should still unhook any hub/leaf confs still pending
	   */
	  unhook_hub_leaf_confs();

	  if (yy_conf->name != NULL)
	  {
#ifndef HAVE_LIBCRYPTO
	    if (IsConfCryptLink(yy_aconf))
	      yyerror("Ignoring connect block -- no OpenSSL support");
#else
	    if (IsConfCryptLink(yy_aconf) && !yy_aconf->rsa_public_key)
	      yyerror("Ignoring connect block -- missing key");
#endif
	    if (yy_aconf->host == NULL)
	      yyerror("Ignoring connect block -- missing host");
	    else if (!IsConfCryptLink(yy_aconf) && 
		    (!yy_aconf->passwd || !yy_aconf->spasswd))
              yyerror("Ignoring connect block -- missing password");
	  }


          /* XXX
           * This fixes a try_connections() core (caused by invalid class_ptr
           * pointers) reported by metalrock. That's an ugly fix, but there
           * is currently no better way. The entire config subsystem needs an
           * rewrite ASAP. make_conf_item() shouldn't really add things onto
           * a doubly linked list immediately without any sanity checks!  -Michael
           */
          delete_conf_item(yy_conf);

          yy_aconf = NULL;
	  yy_conf = NULL;
	}

      /*
       * yy_conf is still pointing at the server that is having
       * a connect block built for it. This means, y_aconf->name 
       * points to the actual irc name this server will be known as.
       * Now this new server has a set or even just one hub_mask (or leaf_mask)
       * given in the link list at yy_hconf. Fill in the HUB confs
       * from this link list now.
       */        
      DLINK_FOREACH_SAFE(ptr, next_ptr, hub_conf_list.head)
      {
	struct ConfItem *new_hub_conf;
	struct MatchItem *match_item;

	yy_hconf = ptr->data;

	/* yy_conf == NULL is a fatal error for this connect block! */
	if ((yy_conf != NULL) && (yy_conf->name != NULL))
	{
	  new_hub_conf = make_conf_item(HUB_TYPE);
	  match_item = (struct MatchItem *)map_to_conf(new_hub_conf);
	  DupString(new_hub_conf->name, yy_conf->name);
	  if (yy_hconf->user != NULL)
	    DupString(match_item->user, yy_hconf->user);
	  else
	    DupString(match_item->user, "*");
	  if (yy_hconf->host != NULL)
	    DupString(match_item->host, yy_hconf->host);
	  else
	    DupString(match_item->host, "*");
	}
	dlinkDelete(&yy_hconf->node, &hub_conf_list);
	free_collect_item(yy_hconf);
      }

      /* Ditto for the LEAF confs */

      DLINK_FOREACH_SAFE(ptr, next_ptr, leaf_conf_list.head)
      {
	struct ConfItem *new_leaf_conf;
	struct MatchItem *match_item;

	yy_lconf = ptr->data;

	if ((yy_conf != NULL) && (yy_conf->name != NULL))
	{
	  new_leaf_conf = make_conf_item(LEAF_TYPE);
	  match_item = (struct MatchItem *)map_to_conf(new_leaf_conf);
	  DupString(new_leaf_conf->name, yy_conf->name);
	  if (yy_lconf->user != NULL)
	    DupString(match_item->user, yy_lconf->user);
	  else
	    DupString(match_item->user, "*");
	  if (yy_lconf->host != NULL)
	    DupString(match_item->host, yy_lconf->host);
	  else
	    DupString(match_item->host, "*");
	}
	dlinkDelete(&yy_lconf->node, &leaf_conf_list);
	free_collect_item(yy_lconf);
      }
      MyFree(class_name);
      class_name = NULL;
      yy_conf = NULL;
      yy_aconf = NULL;
  }
}
    break;

  case 430:
#line 2690 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yy_conf->name != NULL)
      yyerror("Multiple connect name entry");

    MyFree(yy_conf->name);
    DupString(yy_conf->name, yylval.string);
  }
}
    break;

  case 431:
#line 2702 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yy_conf->name != NULL)
      yyerror("Multiple connect name entry");

    MyFree(yy_conf->name);
    DupString(yy_conf->name, yylval.string);
  }
}
    break;

  case 432:
#line 2714 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(yy_aconf->host);
    DupString(yy_aconf->host, yylval.string);
  }
}
    break;

  case 433:
#line 2723 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    struct addrinfo hints, *res;

    memset(&hints, 0, sizeof(hints));

    hints.ai_family   = AF_UNSPEC;
    hints.ai_socktype = SOCK_STREAM;
    hints.ai_flags    = AI_PASSIVE | AI_NUMERICHOST;

    if (irc_getaddrinfo(yylval.string, NULL, &hints, &res))
      ilog(L_ERROR, "Invalid netmask for server vhost(%s)", yylval.string);
    else
    {
      assert(res != NULL);

      memcpy(&yy_aconf->my_ipnum, res->ai_addr, res->ai_addrlen);
      yy_aconf->my_ipnum.ss.ss_family = res->ai_family;
      yy_aconf->my_ipnum.ss_len = res->ai_addrlen;
      irc_freeaddrinfo(res);
    }
  }
}
    break;

  case 434:
#line 2749 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if ((yyvsp[(3) - (4)].string)[0] == ':')
      yyerror("Server passwords cannot begin with a colon");
    else if (strchr((yyvsp[(3) - (4)].string), ' ') != NULL)
      yyerror("Server passwords cannot contain spaces");
    else {
      if (yy_aconf->spasswd != NULL)
        memset(yy_aconf->spasswd, 0, strlen(yy_aconf->spasswd));

      MyFree(yy_aconf->spasswd);
      DupString(yy_aconf->spasswd, yylval.string);
    }
  }
}
    break;

  case 435:
#line 2767 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if ((yyvsp[(3) - (4)].string)[0] == ':')
      yyerror("Server passwords cannot begin with a colon");
    else if (strchr((yyvsp[(3) - (4)].string), ' ') != NULL)
      yyerror("Server passwords cannot contain spaces");
    else {
      if (yy_aconf->passwd != NULL)
        memset(yy_aconf->passwd, 0, strlen(yy_aconf->passwd));

      MyFree(yy_aconf->passwd);
      DupString(yy_aconf->passwd, yylval.string);
    }
  }
}
    break;

  case 436:
#line 2785 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->port = (yyvsp[(3) - (4)].number);
}
    break;

  case 437:
#line 2791 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->aftype = AF_INET;
}
    break;

  case 438:
#line 2795 "ircd_parser.y"
    {
#ifdef IPV6
  if (ypass == 2)
    yy_aconf->aftype = AF_INET6;
#endif
}
    break;

  case 439:
#line 2803 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(yy_aconf->fakename);
    DupString(yy_aconf->fakename, yylval.string);
  }
}
    break;

  case 440:
#line 2812 "ircd_parser.y"
    {
}
    break;

  case 444:
#line 2816 "ircd_parser.y"
    { not_atom = 1; }
    break;

  case 446:
#line 2817 "ircd_parser.y"
    { not_atom = 0; }
    break;

  case 448:
#line 2820 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom)ClearConfLazyLink(yy_aconf);
    else SetConfLazyLink(yy_aconf);
  }
}
    break;

  case 449:
#line 2827 "ircd_parser.y"
    {
  if (ypass == 2)
#ifndef HAVE_LIBZ
    yyerror("Ignoring flags = compressed; -- no zlib support");
#else
 {
   if (not_atom)ClearConfCompressed(yy_aconf);
   else SetConfCompressed(yy_aconf);
 }
#endif
}
    break;

  case 450:
#line 2838 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom)ClearConfCryptLink(yy_aconf);
    else SetConfCryptLink(yy_aconf);
  }
}
    break;

  case 451:
#line 2845 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom)ClearConfAllowAutoConn(yy_aconf);
    else SetConfAllowAutoConn(yy_aconf);
  }
}
    break;

  case 452:
#line 2852 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom)ClearConfAwayBurst(yy_aconf);
    else SetConfAwayBurst(yy_aconf);
  }
}
    break;

  case 453:
#line 2859 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (not_atom)ClearConfTopicBurst(yy_aconf);
    else SetConfTopicBurst(yy_aconf);
  }
}
    break;

  case 454:
#line 2869 "ircd_parser.y"
    {
#ifdef HAVE_LIBCRYPTO
  if (ypass == 2)
  {
    BIO *file;

    if (yy_aconf->rsa_public_key != NULL)
    {
      RSA_free(yy_aconf->rsa_public_key);
      yy_aconf->rsa_public_key = NULL;
    }

    if (yy_aconf->rsa_public_key_file != NULL)
    {
      MyFree(yy_aconf->rsa_public_key_file);
      yy_aconf->rsa_public_key_file = NULL;
    }

    DupString(yy_aconf->rsa_public_key_file, yylval.string);

    if ((file = BIO_new_file(yylval.string, "r")) == NULL)
    {
      yyerror("Ignoring rsa_public_key_file -- file doesn't exist");
      break;
    }

    yy_aconf->rsa_public_key = (RSA *)PEM_read_bio_RSA_PUBKEY(file, NULL, 0, NULL);

    if (yy_aconf->rsa_public_key == NULL)
    {
      yyerror("Ignoring rsa_public_key_file -- Key invalid; check key syntax.");
      break;
    }
      
    BIO_set_close(file, BIO_CLOSE);
    BIO_free(file);
  }
#endif /* HAVE_LIBCRYPTO */
}
    break;

  case 455:
#line 2910 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->flags |= CONF_FLAGS_ENCRYPTED;
    else
      yy_aconf->flags &= ~CONF_FLAGS_ENCRYPTED;
  }
}
    break;

  case 456:
#line 2921 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->flags |= CONF_FLAGS_CRYPTLINK;
    else
      yy_aconf->flags &= ~CONF_FLAGS_CRYPTLINK;
  }
}
    break;

  case 457:
#line 2932 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
#ifndef HAVE_LIBZ
      yyerror("Ignoring compressed=yes; -- no zlib support");
#else
      yy_aconf->flags |= CONF_FLAGS_COMPRESSED;
#endif
    else
      yy_aconf->flags &= ~CONF_FLAGS_COMPRESSED;
  }
}
    break;

  case 458:
#line 2947 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      yy_aconf->flags |= CONF_FLAGS_ALLOW_AUTO_CONN;
    else
      yy_aconf->flags &= ~CONF_FLAGS_ALLOW_AUTO_CONN;
  }
}
    break;

  case 459:
#line 2958 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.number)
      SetConfTopicBurst(yy_aconf);
    else
      ClearConfTopicBurst(yy_aconf);
  }
}
    break;

  case 460:
#line 2969 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    struct CollectItem *yy_tmp;

    yy_tmp = (struct CollectItem *)MyMalloc(sizeof(struct CollectItem));
    DupString(yy_tmp->host, yylval.string);
    DupString(yy_tmp->user, "*");
    dlinkAdd(yy_tmp, &yy_tmp->node, &hub_conf_list);
  }
}
    break;

  case 461:
#line 2982 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    struct CollectItem *yy_tmp;

    yy_tmp = (struct CollectItem *)MyMalloc(sizeof(struct CollectItem));
    DupString(yy_tmp->host, yylval.string);
    DupString(yy_tmp->user, "*");
    dlinkAdd(yy_tmp, &yy_tmp->node, &leaf_conf_list);
  }
}
    break;

  case 462:
#line 2995 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(class_name);
    DupString(class_name, yylval.string);
  }
}
    break;

  case 463:
#line 3004 "ircd_parser.y"
    {
#ifdef HAVE_LIBCRYPTO
  if (ypass == 2)
  {
    struct EncCapability *ecap;
    const char *cipher_name;
    int found = 0;

    yy_aconf->cipher_preference = NULL;
    cipher_name = yylval.string;

    for (ecap = CipherTable; ecap->name; ecap++)
    {
      if ((irccmp(ecap->name, cipher_name) == 0) &&
          (ecap->cap & CAP_ENC_MASK))
      {
        yy_aconf->cipher_preference = ecap;
        found = 1;
        break;
      }
    }

    if (!found)
      yyerror("Invalid cipher");
  }
#else
  if (ypass == 2)
    yyerror("Ignoring cipher_preference -- no OpenSSL support");
#endif
}
    break;

  case 464:
#line 3039 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    userbuf[0] = hostbuf[0] = reasonbuf[0] = '\0';
    regex_ban = 0;
  }
}
    break;

  case 465:
#line 3046 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (userbuf[0] && hostbuf[0])
    {
      if (regex_ban)
      {
        pcre *exp_user = NULL;
        pcre *exp_host = NULL;
        const char *errptr = NULL;

        if (!(exp_user = ircd_pcre_compile(userbuf, &errptr)) ||
            !(exp_host = ircd_pcre_compile(hostbuf, &errptr)))
        {
          ilog(L_ERROR, "Failed to add regular expression based K-Line: %s",
               errptr);
          break;
        }

        yy_conf = make_conf_item(RKLINE_TYPE);
        yy_aconf = map_to_conf(yy_conf);

        yy_aconf->regexuser = exp_user;
        yy_aconf->regexhost = exp_host;

        DupString(yy_aconf->user, userbuf);
        DupString(yy_aconf->host, hostbuf);

        if (reasonbuf[0])
          DupString(yy_aconf->reason, reasonbuf);
        else
          DupString(yy_aconf->reason, "No reason");
      }
      else
      {
        yy_conf = make_conf_item(KLINE_TYPE);
        yy_aconf = map_to_conf(yy_conf);

        DupString(yy_aconf->user, userbuf);
        DupString(yy_aconf->host, hostbuf);

        if (reasonbuf[0])
          DupString(yy_aconf->reason, reasonbuf);
        else
          DupString(yy_aconf->reason, "No reason");
        add_conf_by_address(CONF_KILL, yy_aconf);
      }
    }
    else
      delete_conf_item(yy_conf);

    yy_conf = NULL;
    yy_aconf = NULL;
  }
}
    break;

  case 466:
#line 3103 "ircd_parser.y"
    {
}
    break;

  case 470:
#line 3108 "ircd_parser.y"
    {
  if (ypass == 2)
    regex_ban = 1;
}
    break;

  case 477:
#line 3117 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    struct split_nuh_item nuh;

    nuh.nuhmask  = yylval.string;
    nuh.nickptr  = NULL;
    nuh.userptr  = userbuf;
    nuh.hostptr  = hostbuf;

    nuh.nicksize = 0;
    nuh.usersize = sizeof(userbuf);
    nuh.hostsize = sizeof(hostbuf);

    split_nuh(&nuh);
  }
}
    break;

  case 478:
#line 3136 "ircd_parser.y"
    {
  if (ypass == 2)
    strlcpy(reasonbuf, yylval.string, sizeof(reasonbuf));
}
    break;

  case 479:
#line 3145 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    yy_conf = make_conf_item(DLINE_TYPE);
    yy_aconf = map_to_conf(yy_conf);
    /* default reason */
    DupString(yy_aconf->reason, "No reason");
  }
}
    break;

  case 480:
#line 3154 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yy_aconf->host && parse_netmask(yy_aconf->host, NULL, NULL) != HM_HOST)
      add_conf_by_address(CONF_DLINE, yy_aconf);
    else
      delete_conf_item(yy_conf);
    yy_conf = NULL;
    yy_aconf = NULL;
  }
}
    break;

  case 486:
#line 3170 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(yy_aconf->host);
    DupString(yy_aconf->host, yylval.string);
  }
}
    break;

  case 487:
#line 3179 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(yy_aconf->reason);
    DupString(yy_aconf->reason, yylval.string);
  }
}
    break;

  case 493:
#line 3196 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (yylval.string[0] && parse_netmask(yylval.string, NULL, NULL) != HM_HOST)
    {
      yy_conf = make_conf_item(EXEMPTDLINE_TYPE);
      yy_aconf = map_to_conf(yy_conf);
      DupString(yy_aconf->host, yylval.string);

      add_conf_by_address(CONF_EXEMPTDLINE, yy_aconf);

      yy_conf = NULL;
      yy_aconf = NULL;
    }
  }
}
    break;

  case 494:
#line 3217 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    regex_ban = 0;
    reasonbuf[0] = gecos_name[0] = '\0';
  }
}
    break;

  case 495:
#line 3224 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (gecos_name[0])
    {
      if (regex_ban)
      {
        pcre *exp_p = NULL;
        const char *errptr = NULL;

        if (!(exp_p = ircd_pcre_compile(gecos_name, &errptr)))
        {
          ilog(L_ERROR, "Failed to add regular expression based X-Line: %s",
               errptr);
          break;
        }

        yy_conf = make_conf_item(RXLINE_TYPE);
        yy_conf->regexpname = exp_p;
      }
      else
        yy_conf = make_conf_item(XLINE_TYPE);

      yy_match_item = map_to_conf(yy_conf);
      DupString(yy_conf->name, gecos_name);

      if (reasonbuf[0])
        DupString(yy_match_item->reason, reasonbuf);
      else
        DupString(yy_match_item->reason, "No reason");
    }
  }
}
    break;

  case 496:
#line 3259 "ircd_parser.y"
    {
}
    break;

  case 500:
#line 3264 "ircd_parser.y"
    {
  if (ypass == 2)
    regex_ban = 1;
}
    break;

  case 507:
#line 3273 "ircd_parser.y"
    {
  if (ypass == 2)
    strlcpy(gecos_name, yylval.string, sizeof(gecos_name));
}
    break;

  case 508:
#line 3279 "ircd_parser.y"
    {
  if (ypass == 2)
    strlcpy(reasonbuf, yylval.string, sizeof(reasonbuf));
}
    break;

  case 568:
#line 3324 "ircd_parser.y"
    {
  ConfigFileEntry.gline_min_cidr = (yyvsp[(3) - (4)].number);
}
    break;

  case 569:
#line 3329 "ircd_parser.y"
    {
  ConfigFileEntry.gline_min_cidr6 = (yyvsp[(3) - (4)].number);
}
    break;

  case 570:
#line 3334 "ircd_parser.y"
    {
  ConfigFileEntry.burst_away = yylval.number;
}
    break;

  case 571:
#line 3339 "ircd_parser.y"
    {
  ConfigFileEntry.use_whois_actually = yylval.number;
}
    break;

  case 572:
#line 3344 "ircd_parser.y"
    {
  GlobalSetOptions.rejecttime = yylval.number;
}
    break;

  case 573:
#line 3349 "ircd_parser.y"
    {
  ConfigFileEntry.tkline_expire_notices = yylval.number;
}
    break;

  case 574:
#line 3354 "ircd_parser.y"
    {
  ConfigFileEntry.kill_chase_time_limit = (yyvsp[(3) - (4)].number);
}
    break;

  case 575:
#line 3359 "ircd_parser.y"
    {
  ConfigFileEntry.hide_spoof_ips = yylval.number;
}
    break;

  case 576:
#line 3364 "ircd_parser.y"
    {
  ConfigFileEntry.ignore_bogus_ts = yylval.number;
}
    break;

  case 577:
#line 3369 "ircd_parser.y"
    {
  ConfigFileEntry.disable_remote = yylval.number;
}
    break;

  case 578:
#line 3374 "ircd_parser.y"
    {
  ConfigFileEntry.failed_oper_notice = yylval.number;
}
    break;

  case 579:
#line 3379 "ircd_parser.y"
    {
  ConfigFileEntry.anti_nick_flood = yylval.number;
}
    break;

  case 580:
#line 3384 "ircd_parser.y"
    {
  ConfigFileEntry.max_nick_time = (yyvsp[(3) - (4)].number); 
}
    break;

  case 581:
#line 3389 "ircd_parser.y"
    {
  ConfigFileEntry.max_nick_changes = (yyvsp[(3) - (4)].number);
}
    break;

  case 582:
#line 3394 "ircd_parser.y"
    {
  ConfigFileEntry.max_accept = (yyvsp[(3) - (4)].number);
}
    break;

  case 583:
#line 3399 "ircd_parser.y"
    {
  ConfigFileEntry.anti_spam_exit_message_time = (yyvsp[(3) - (4)].number);
}
    break;

  case 584:
#line 3404 "ircd_parser.y"
    {
  ConfigFileEntry.ts_warn_delta = (yyvsp[(3) - (4)].number);
}
    break;

  case 585:
#line 3409 "ircd_parser.y"
    {
  if (ypass == 2)
    ConfigFileEntry.ts_max_delta = (yyvsp[(3) - (4)].number);
}
    break;

  case 586:
#line 3415 "ircd_parser.y"
    {
  if (((yyvsp[(3) - (4)].number) > 0) && ypass == 1)
  {
    ilog(L_CRIT, "You haven't read your config file properly.");
    ilog(L_CRIT, "There is a line in the example conf that will kill your server if not removed.");
    ilog(L_CRIT, "Consider actually reading/editing the conf file, and removing this line.");
    exit(0);
  }
}
    break;

  case 587:
#line 3426 "ircd_parser.y"
    {
  ConfigFileEntry.kline_with_reason = yylval.number;
}
    break;

  case 588:
#line 3431 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(ConfigFileEntry.kline_reason);
    DupString(ConfigFileEntry.kline_reason, yylval.string);
  }
}
    break;

  case 589:
#line 3440 "ircd_parser.y"
    {
  ConfigFileEntry.invisible_on_connect = yylval.number;
}
    break;

  case 590:
#line 3445 "ircd_parser.y"
    {
  ConfigFileEntry.warn_no_nline = yylval.number;
}
    break;

  case 591:
#line 3450 "ircd_parser.y"
    {
  ConfigFileEntry.stats_e_disabled = yylval.number;
}
    break;

  case 592:
#line 3455 "ircd_parser.y"
    {
  ConfigFileEntry.stats_o_oper_only = yylval.number;
}
    break;

  case 593:
#line 3460 "ircd_parser.y"
    {
  ConfigFileEntry.stats_P_oper_only = yylval.number;
}
    break;

  case 594:
#line 3465 "ircd_parser.y"
    {
  ConfigFileEntry.stats_k_oper_only = 2 * yylval.number;
}
    break;

  case 595:
#line 3468 "ircd_parser.y"
    {
  ConfigFileEntry.stats_k_oper_only = 1;
}
    break;

  case 596:
#line 3473 "ircd_parser.y"
    {
  ConfigFileEntry.stats_i_oper_only = 2 * yylval.number;
}
    break;

  case 597:
#line 3476 "ircd_parser.y"
    {
  ConfigFileEntry.stats_i_oper_only = 1;
}
    break;

  case 598:
#line 3481 "ircd_parser.y"
    {
  ConfigFileEntry.pace_wait = (yyvsp[(3) - (4)].number);
}
    break;

  case 599:
#line 3486 "ircd_parser.y"
    {
  ConfigFileEntry.caller_id_wait = (yyvsp[(3) - (4)].number);
}
    break;

  case 600:
#line 3491 "ircd_parser.y"
    {
  ConfigFileEntry.opers_bypass_callerid = yylval.number;
}
    break;

  case 601:
#line 3496 "ircd_parser.y"
    {
  ConfigFileEntry.pace_wait_simple = (yyvsp[(3) - (4)].number);
}
    break;

  case 602:
#line 3501 "ircd_parser.y"
    {
  ConfigFileEntry.short_motd = yylval.number;
}
    break;

  case 603:
#line 3506 "ircd_parser.y"
    {
  ConfigFileEntry.no_oper_flood = yylval.number;
}
    break;

  case 604:
#line 3511 "ircd_parser.y"
    {
  ConfigFileEntry.true_no_oper_flood = yylval.number;
}
    break;

  case 605:
#line 3516 "ircd_parser.y"
    {
  ConfigFileEntry.oper_pass_resv = yylval.number;
}
    break;

  case 606:
#line 3521 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (strlen(yylval.string) > LOCALE_LENGTH-2)
      yylval.string[LOCALE_LENGTH-1] = '\0';

    set_locale(yylval.string);
  }
}
    break;

  case 607:
#line 3532 "ircd_parser.y"
    {
  ConfigFileEntry.idletime = (yyvsp[(3) - (4)].number);
}
    break;

  case 608:
#line 3537 "ircd_parser.y"
    {
  ConfigFileEntry.dots_in_ident = (yyvsp[(3) - (4)].number);
}
    break;

  case 609:
#line 3542 "ircd_parser.y"
    {
  ConfigFileEntry.max_targets = (yyvsp[(3) - (4)].number);
}
    break;

  case 610:
#line 3547 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(ConfigFileEntry.servlink_path);
    DupString(ConfigFileEntry.servlink_path, yylval.string);
  }
}
    break;

  case 611:
#line 3556 "ircd_parser.y"
    {
#ifdef HAVE_LIBCRYPTO
  if (ypass == 2)
  {
    struct EncCapability *ecap;
    const char *cipher_name;
    int found = 0;

    ConfigFileEntry.default_cipher_preference = NULL;
    cipher_name = yylval.string;

    for (ecap = CipherTable; ecap->name; ecap++)
    {
      if ((irccmp(ecap->name, cipher_name) == 0) &&
          (ecap->cap & CAP_ENC_MASK))
      {
        ConfigFileEntry.default_cipher_preference = ecap;
        found = 1;
        break;
      }
    }

    if (!found)
      yyerror("Invalid cipher");
  }
#else
  if (ypass == 2)
    yyerror("Ignoring default_cipher_preference -- no OpenSSL support");
#endif
}
    break;

  case 612:
#line 3588 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    ConfigFileEntry.compression_level = (yyvsp[(3) - (4)].number);
#ifndef HAVE_LIBZ
    yyerror("Ignoring compression_level -- no zlib support");
#else
    if ((ConfigFileEntry.compression_level < 1) ||
        (ConfigFileEntry.compression_level > 9))
    {
      yyerror("Ignoring invalid compression_level, using default");
      ConfigFileEntry.compression_level = 0;
    }
#endif
  }
}
    break;

  case 613:
#line 3606 "ircd_parser.y"
    {
  ConfigFileEntry.use_egd = yylval.number;
}
    break;

  case 614:
#line 3611 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(ConfigFileEntry.egdpool_path);
    DupString(ConfigFileEntry.egdpool_path, yylval.string);
  }
}
    break;

  case 615:
#line 3620 "ircd_parser.y"
    {
  ConfigFileEntry.ping_cookie = yylval.number;
}
    break;

  case 616:
#line 3625 "ircd_parser.y"
    {
  ConfigFileEntry.disable_auth = yylval.number;
}
    break;

  case 617:
#line 3630 "ircd_parser.y"
    {
  ConfigFileEntry.throttle_time = yylval.number;
}
    break;

  case 618:
#line 3635 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes = 0;
}
    break;

  case 622:
#line 3641 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_BOTS;
}
    break;

  case 623:
#line 3644 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_CCONN;
}
    break;

  case 624:
#line 3647 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_CCONN_FULL;
}
    break;

  case 625:
#line 3650 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_DEAF;
}
    break;

  case 626:
#line 3653 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_DEBUG;
}
    break;

  case 627:
#line 3656 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_FULL;
}
    break;

  case 628:
#line 3659 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_SKILL;
}
    break;

  case 629:
#line 3662 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_NCHANGE;
}
    break;

  case 630:
#line 3665 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_REJ;
}
    break;

  case 631:
#line 3668 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_UNAUTH;
}
    break;

  case 632:
#line 3671 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_SPY;
}
    break;

  case 633:
#line 3674 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_EXTERNAL;
}
    break;

  case 634:
#line 3677 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_OPERWALL;
}
    break;

  case 635:
#line 3680 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_SERVNOTICE;
}
    break;

  case 636:
#line 3683 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_SERVICESNOTICE;
}
    break;

  case 637:
#line 3686 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_INVISIBLE;
}
    break;

  case 638:
#line 3689 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_WALLOP;
}
    break;

  case 639:
#line 3692 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_SOFTCALLERID;
}
    break;

  case 640:
#line 3695 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_CALLERID;
}
    break;

  case 641:
#line 3698 "ircd_parser.y"
    {
  ConfigFileEntry.oper_umodes |= UMODE_LOCOPS;
}
    break;

  case 642:
#line 3703 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes = 0;
}
    break;

  case 646:
#line 3709 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_BOTS;
}
    break;

  case 647:
#line 3712 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_CCONN;
}
    break;

  case 648:
#line 3715 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_CCONN_FULL;
}
    break;

  case 649:
#line 3718 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_DEAF;
}
    break;

  case 650:
#line 3721 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_DEBUG;
}
    break;

  case 651:
#line 3724 "ircd_parser.y"
    { 
  ConfigFileEntry.oper_only_umodes |= UMODE_FULL;
}
    break;

  case 652:
#line 3727 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_SKILL;
}
    break;

  case 653:
#line 3730 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_NCHANGE;
}
    break;

  case 654:
#line 3733 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_REJ;
}
    break;

  case 655:
#line 3736 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_UNAUTH;
}
    break;

  case 656:
#line 3739 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_SPY;
}
    break;

  case 657:
#line 3742 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_EXTERNAL;
}
    break;

  case 658:
#line 3745 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_OPERWALL;
}
    break;

  case 659:
#line 3748 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_SERVNOTICE;
}
    break;

  case 660:
#line 3751 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_SERVICESNOTICE;
}
    break;

  case 661:
#line 3754 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_INVISIBLE;
}
    break;

  case 662:
#line 3757 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_WALLOP;
}
    break;

  case 663:
#line 3760 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_SOFTCALLERID;
}
    break;

  case 664:
#line 3763 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_CALLERID;
}
    break;

  case 665:
#line 3766 "ircd_parser.y"
    {
  ConfigFileEntry.oper_only_umodes |= UMODE_LOCOPS;
}
    break;

  case 666:
#line 3771 "ircd_parser.y"
    {
  ConfigFileEntry.min_nonwildcard = (yyvsp[(3) - (4)].number);
}
    break;

  case 667:
#line 3776 "ircd_parser.y"
    {
  ConfigFileEntry.min_nonwildcard_simple = (yyvsp[(3) - (4)].number);
}
    break;

  case 668:
#line 3781 "ircd_parser.y"
    {
  ConfigFileEntry.default_floodcount = (yyvsp[(3) - (4)].number);
}
    break;

  case 669:
#line 3786 "ircd_parser.y"
    {
  ConfigFileEntry.client_flood = (yyvsp[(3) - (4)].number);
}
    break;

  case 670:
#line 3791 "ircd_parser.y"
    {
  ConfigFileEntry.dot_in_ip6_addr = yylval.number;
}
    break;

  case 671:
#line 3799 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    yy_conf = make_conf_item(GDENY_TYPE);
    yy_aconf = map_to_conf(yy_conf);
  }
}
    break;

  case 672:
#line 3806 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    /*
     * since we re-allocate yy_conf/yy_aconf after the end of action=, at the
     * end we will have one extra, so we should free it.
     */
    if (yy_conf->name == NULL || yy_aconf->user == NULL)
    {
      delete_conf_item(yy_conf);
      yy_conf = NULL;
      yy_aconf = NULL;
    }
  }
}
    break;

  case 682:
#line 3832 "ircd_parser.y"
    {
  if (ypass == 2)
    ConfigFileEntry.glines = yylval.number;
}
    break;

  case 683:
#line 3838 "ircd_parser.y"
    {
  if (ypass == 2)
    ConfigFileEntry.gline_time = (yyvsp[(3) - (4)].number);
}
    break;

  case 684:
#line 3844 "ircd_parser.y"
    {
  if (ypass == 2)
    ConfigFileEntry.gline_logging = 0;
}
    break;

  case 688:
#line 3850 "ircd_parser.y"
    {
  if (ypass == 2)
    ConfigFileEntry.gline_logging |= GDENY_REJECT;
}
    break;

  case 689:
#line 3854 "ircd_parser.y"
    {
  if (ypass == 2)
    ConfigFileEntry.gline_logging |= GDENY_BLOCK;
}
    break;

  case 690:
#line 3860 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    struct split_nuh_item nuh;

    nuh.nuhmask  = yylval.string;
    nuh.nickptr  = NULL;
    nuh.userptr  = userbuf;
    nuh.hostptr  = hostbuf;

    nuh.nicksize = 0;
    nuh.usersize = sizeof(userbuf);
    nuh.hostsize = sizeof(hostbuf);

    split_nuh(&nuh);

    if (yy_aconf->user == NULL)
    {
      DupString(yy_aconf->user, userbuf);
      DupString(yy_aconf->host, hostbuf);
    }
    else
    {
      struct CollectItem *yy_tmp = MyMalloc(sizeof(struct CollectItem));

      DupString(yy_tmp->user, userbuf);
      DupString(yy_tmp->host, hostbuf);

      dlinkAdd(yy_tmp, &yy_tmp->node, &col_conf_list);
    }
  }
}
    break;

  case 691:
#line 3894 "ircd_parser.y"
    {
  if (ypass == 2)  
  {
    MyFree(yy_conf->name);
    DupString(yy_conf->name, yylval.string);
  }
}
    break;

  case 692:
#line 3903 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->flags = 0;
}
    break;

  case 693:
#line 3907 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    struct CollectItem *yy_tmp = NULL;
    dlink_node *ptr, *next_ptr;

    DLINK_FOREACH_SAFE(ptr, next_ptr, col_conf_list.head)
    {
      struct AccessItem *new_aconf;
      struct ConfItem *new_conf;

      yy_tmp = ptr->data;
      new_conf = make_conf_item(GDENY_TYPE);
      new_aconf = map_to_conf(new_conf);

      new_aconf->flags = yy_aconf->flags;

      if (yy_conf->name != NULL)
        DupString(new_conf->name, yy_conf->name);
      else
        DupString(new_conf->name, "*");
      if (yy_aconf->user != NULL)
         DupString(new_aconf->user, yy_tmp->user);
      else   
        DupString(new_aconf->user, "*");
      if (yy_aconf->host != NULL)
        DupString(new_aconf->host, yy_tmp->host);
      else
        DupString(new_aconf->host, "*");

      dlinkDelete(&yy_tmp->node, &col_conf_list);
    }

    /*
     * In case someone has fed us with more than one action= after user/name
     * which would leak memory  -Michael
     */
    if (yy_conf->name == NULL || yy_aconf->user == NULL)
      delete_conf_item(yy_conf);

    yy_conf = make_conf_item(GDENY_TYPE);
    yy_aconf = map_to_conf(yy_conf);
  }
}
    break;

  case 696:
#line 3954 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->flags |= GDENY_REJECT;
}
    break;

  case 697:
#line 3958 "ircd_parser.y"
    {
  if (ypass == 2)
    yy_aconf->flags |= GDENY_BLOCK;
}
    break;

  case 720:
#line 3982 "ircd_parser.y"
    {
  ConfigChannel.disable_fake_channels = yylval.number;
}
    break;

  case 721:
#line 3987 "ircd_parser.y"
    {
  ConfigChannel.restrict_channels = yylval.number;
}
    break;

  case 722:
#line 3992 "ircd_parser.y"
    {
  ConfigChannel.disable_local_channels = yylval.number;
}
    break;

  case 723:
#line 3997 "ircd_parser.y"
    {
  ConfigChannel.use_except = yylval.number;
}
    break;

  case 724:
#line 4002 "ircd_parser.y"
    {
  ConfigChannel.use_invex = yylval.number;
}
    break;

  case 725:
#line 4007 "ircd_parser.y"
    {
  ConfigChannel.use_knock = yylval.number;
}
    break;

  case 726:
#line 4012 "ircd_parser.y"
    {
  ConfigChannel.knock_delay = (yyvsp[(3) - (4)].number);
}
    break;

  case 727:
#line 4017 "ircd_parser.y"
    {
  ConfigChannel.knock_delay_channel = (yyvsp[(3) - (4)].number);
}
    break;

  case 728:
#line 4022 "ircd_parser.y"
    {
  ConfigChannel.max_chans_per_user = (yyvsp[(3) - (4)].number);
}
    break;

  case 729:
#line 4027 "ircd_parser.y"
    {
  ConfigChannel.quiet_on_ban = yylval.number;
}
    break;

  case 730:
#line 4032 "ircd_parser.y"
    {
  ConfigChannel.max_bans = (yyvsp[(3) - (4)].number);
}
    break;

  case 731:
#line 4037 "ircd_parser.y"
    {
  ConfigChannel.default_split_user_count = (yyvsp[(3) - (4)].number);
}
    break;

  case 732:
#line 4042 "ircd_parser.y"
    {
  ConfigChannel.default_split_server_count = (yyvsp[(3) - (4)].number);
}
    break;

  case 733:
#line 4047 "ircd_parser.y"
    {
  ConfigChannel.no_create_on_split = yylval.number;
}
    break;

  case 734:
#line 4052 "ircd_parser.y"
    {
  ConfigChannel.no_join_on_split = yylval.number;
}
    break;

  case 735:
#line 4057 "ircd_parser.y"
    {
  ConfigChannel.burst_topicwho = yylval.number;
}
    break;

  case 736:
#line 4062 "ircd_parser.y"
    {
  GlobalSetOptions.joinfloodcount = yylval.number;
}
    break;

  case 737:
#line 4067 "ircd_parser.y"
    {
  GlobalSetOptions.joinfloodtime = yylval.number;
}
    break;

  case 749:
#line 4086 "ircd_parser.y"
    {
  if (ypass == 2)
    ConfigServerHide.flatten_links = yylval.number;
}
    break;

  case 750:
#line 4092 "ircd_parser.y"
    {
  if (ypass == 2)
    ConfigServerHide.hide_servers = yylval.number;
}
    break;

  case 751:
#line 4098 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    MyFree(ConfigServerHide.hidden_name);
    DupString(ConfigServerHide.hidden_name, yylval.string);
  }
}
    break;

  case 752:
#line 4107 "ircd_parser.y"
    {
  if (ypass == 2)
  {
    if (((yyvsp[(3) - (4)].number) > 0) && ConfigServerHide.links_disabled == 1)
    {
      eventAddIsh("write_links_file", write_links_file, NULL, (yyvsp[(3) - (4)].number));
      ConfigServerHide.links_disabled = 0;
    }

    ConfigServerHide.links_delay = (yyvsp[(3) - (4)].number);
  }
}
    break;

  case 753:
#line 4121 "ircd_parser.y"
    {
  if (ypass == 2)
    ConfigServerHide.hidden = yylval.number;
}
    break;

  case 754:
#line 4127 "ircd_parser.y"
    {
  if (ypass == 2)
    ConfigServerHide.disable_hidden = yylval.number;
}
    break;

  case 755:
#line 4133 "ircd_parser.y"
    {
  if (ypass == 2)
    ConfigServerHide.hide_server_ips = yylval.number;
}
    break;


/* Line 1267 of yacc.c.  */
#line 7996 "y.tab.c"
      default: break;
    }
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);

  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);

  *++yyvsp = yyval;


  /* Now `shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */

  yyn = yyr1[yyn];

  yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTOKENS];

  goto yynewstate;


/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
yyerrlab:
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if ! YYERROR_VERBOSE
      yyerror (YY_("syntax error"));
#else
      {
	YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
	if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
	  {
	    YYSIZE_T yyalloc = 2 * yysize;
	    if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
	      yyalloc = YYSTACK_ALLOC_MAXIMUM;
	    if (yymsg != yymsgbuf)
	      YYSTACK_FREE (yymsg);
	    yymsg = (char *) YYSTACK_ALLOC (yyalloc);
	    if (yymsg)
	      yymsg_alloc = yyalloc;
	    else
	      {
		yymsg = yymsgbuf;
		yymsg_alloc = sizeof yymsgbuf;
	      }
	  }

	if (0 < yysize && yysize <= yymsg_alloc)
	  {
	    (void) yysyntax_error (yymsg, yystate, yychar);
	    yyerror (yymsg);
	  }
	else
	  {
	    yyerror (YY_("syntax error"));
	    if (yysize != 0)
	      goto yyexhaustedlab;
	  }
      }
#endif
    }



  if (yyerrstatus == 3)
    {
      /* If just tried and failed to reuse look-ahead token after an
	 error, discard it.  */

      if (yychar <= YYEOF)
	{
	  /* Return failure if at end of input.  */
	  if (yychar == YYEOF)
	    YYABORT;
	}
      else
	{
	  yydestruct ("Error: discarding",
		      yytoken, &yylval);
	  yychar = YYEMPTY;
	}
    }

  /* Else will try to reuse look-ahead token after shifting the error
     token.  */
  goto yyerrlab1;


/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:

  /* Pacify compilers like GCC when the user code never invokes
     YYERROR and the label yyerrorlab therefore never appears in user
     code.  */
  if (/*CONSTCOND*/ 0)
     goto yyerrorlab;

  /* Do not reclaim the symbols of the rule which action triggered
     this YYERROR.  */
  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);
  yystate = *yyssp;
  goto yyerrlab1;


/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;	/* Each real token shifted decrements this.  */

  for (;;)
    {
      yyn = yypact[yystate];
      if (yyn != YYPACT_NINF)
	{
	  yyn += YYTERROR;
	  if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
	    {
	      yyn = yytable[yyn];
	      if (0 < yyn)
		break;
	    }
	}

      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
	YYABORT;


      yydestruct ("Error: popping",
		  yystos[yystate], yyvsp);
      YYPOPSTACK (1);
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
    }

  if (yyn == YYFINAL)
    YYACCEPT;

  *++yyvsp = yylval;


  /* Shift the error token.  */
  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);

  yystate = yyn;
  goto yynewstate;


/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  yyresult = 0;
  goto yyreturn;

/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  yyresult = 1;
  goto yyreturn;

#ifndef yyoverflow
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here.  |
`-------------------------------------------------*/
yyexhaustedlab:
  yyerror (YY_("memory exhausted"));
  yyresult = 2;
  /* Fall through.  */
#endif

yyreturn:
  if (yychar != YYEOF && yychar != YYEMPTY)
     yydestruct ("Cleanup: discarding lookahead",
		 yytoken, &yylval);
  /* Do not reclaim the symbols of the rule which action triggered
     this YYABORT or YYACCEPT.  */
  YYPOPSTACK (yylen);
  YY_STACK_PRINT (yyss, yyssp);
  while (yyssp != yyss)
    {
      yydestruct ("Cleanup: popping",
		  yystos[*yyssp], yyvsp);
      YYPOPSTACK (1);
    }
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
  if (yymsg != yymsgbuf)
    YYSTACK_FREE (yymsg);
#endif
  /* Make sure YYID is used.  */
  return YYID (yyresult);
}



